Skip to content

Commit 482c730

Browse files
committed
fixed bug in cmd script
1 parent dd7d206 commit 482c730

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

test/runcitests.cmd

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,22 @@ set _HadFailures=0
129129
:: ============================================================================
130130
:runTests
131131

132-
arch=%1
133-
build=%2
132+
:: save the architecture and build values, then obtain the rest of the arguments
133+
set arch=%1
134+
set build=%2
134135
shift
135136
shift
136-
call :do %_TestDir%\runtests.cmd -%arch%build %* -quiet -cleanupall -binDir %_StagingDir%\bin
137+
138+
set rest=
139+
:rest_loop
140+
if "%1"=="" goto after_rest_loop
141+
set rest=%rest% %1
142+
shift
143+
goto rest_loop
144+
145+
:after_rest_loop
146+
147+
call :do %_TestDir%\runtests.cmd -%arch%%build% %rest% -quiet -cleanupall -binDir %_StagingDir%\bin
137148

138149
if "%_error%" NEQ "0" (
139150
echo -- runcitests.cmd ^>^> runtests.cmd failed

0 commit comments

Comments
 (0)