Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 299946a

Browse files
author
José Rivero
committed
Stop running all tests on first failure, if the run is private or rolling.
1 parent fdcb610 commit 299946a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

tests/scripts/run-xunit-perf.cmd

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ setlocal
3333

3434
rem find and stage the tests
3535
for /R %CORECLR_PERF% %%T in (*.%TEST_FILE_EXT%) do (
36-
call :run_benchmark %%T
36+
call :run_benchmark %%T || (
37+
IF /I NOT "%BENCHVIEW_RUN_TYPE%" == "local" exit /b 1
38+
)
3739
)
3840

3941
rem optionally upload results to benchview
@@ -283,22 +285,25 @@ rem ****************************************************************************
283285
:print_to_console
284286
rem ****************************************************************************
285287
rem Sends text to the console screen, no matter what (even when the script's
286-
rem output is redirected). This is useful to output provide information on
287-
rem where the script is executing.
288+
rem output is redirected). This can be useful to provide information on where
289+
rem the script is executing.
288290
rem ****************************************************************************
289-
echo [%DATE%][%TIME:~0,-3%] %* >CON
291+
if defined _debug (
292+
echo [%DATE%][%TIME:~0,-3%] %* >CON
293+
)
294+
echo [%DATE%][%TIME:~0,-3%] %*
290295
exit /b %ERRORLEVEL%
291296

292297
:run_cmd
293298
rem ****************************************************************************
294-
rem Function wrapper used to display to the console screen the command line
295-
rem being executed.
299+
rem Function wrapper used to send the command line being executed to the
300+
rem console screen, before the command is executed.
296301
rem ****************************************************************************
297302
if "%~1" == "" (
298303
call :print_error No command was specified.
299304
exit /b 1
300305
)
301306

302-
echo [%DATE%][%TIME:~0,-3%] $ %* >CON
307+
call :print_to_console $ %*
303308
call %*
304309
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)