From ecb17cc4c9b067eed43cb3eeb97e2a673e05d476 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Fri, 4 Oct 2024 16:53:24 +0800 Subject: [PATCH] Final tests --- src/globals/test-extensions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 60d16ae0..4154b93d 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -146,14 +146,16 @@ echo match ($argv[1]) { if ($argv[1] === 'download_cmd') { if (str_starts_with($argv[2], 'windows-')) { - passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd); + passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd, $retcode); } else { - passthru('./bin/spc ' . $down_cmd); + passthru('./bin/spc ' . $down_cmd, $retcode); } } elseif ($argv[1] === 'build_cmd') { if (str_starts_with($argv[2], 'windows-')) { - passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd); + passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd, $retcode); } else { - passthru('./bin/spc ' . $build_cmd); + passthru('./bin/spc ' . $build_cmd, $retcode); } } + +exit($retcode);