Skip to content

Commit 7060747

Browse files
committed
Add -timeoutRetries support to runtests.cmd
1 parent 2421acb commit 7060747

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/runtests.cmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ goto :main
196196
if /i "%1" == "-DumpOnCrash" set _DumpOnCrash=1& goto :ArgOk
197197
if /i "%1" == "-CrashOnException" set _CrashOnException=1& goto :ArgOk
198198

199-
::Timeout flag
200-
if /i "%1" == "-timeout" set _TestTimeout=%~2& goto : ArgOkShift2
199+
::Timeout flags
200+
if /i "%1" == "-timeout" set _TestTimeout=%~2& goto :ArgOkShift2
201+
if /i "%1" == "-timeoutRetries" set _TestTimeoutRetries=%~2& goto :ArgOkShift2
201202

202203
if /i "%1" == "-extraVariants" (
203204
:: Extra variants are specified by the user but not run by default.
@@ -495,6 +496,9 @@ goto :main
495496
if not "%_TestTimeout%" == "" (
496497
set EXTRA_RL_FLAGS=%EXTRA_RL_FLAGS% -timeout:%_TestTimeout%
497498
)
499+
if not "%_TestTimeoutRetries%" == "" (
500+
set EXTRA_RL_FLAGS=%EXTRA_RL_FLAGS% -timeoutRetries:%_TestTimeoutRetries%
501+
)
498502

499503
echo.
500504
echo ############# Starting %_TESTCONFIG% variant #############

0 commit comments

Comments
 (0)