@@ -33,7 +33,9 @@ setlocal
33
33
34
34
rem find and stage the tests
35
35
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
+ )
37
39
)
38
40
39
41
rem optionally upload results to benchview
@@ -283,22 +285,25 @@ rem ****************************************************************************
283
285
:print_to_console
284
286
rem ****************************************************************************
285
287
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.
288
290
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 % ] %*
290
295
exit /b %ERRORLEVEL%
291
296
292
297
:run_cmd
293
298
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.
296
301
rem ****************************************************************************
297
302
if " %~1 " == " " (
298
303
call :print_error No command was specified.
299
304
exit /b 1
300
305
)
301
306
302
- echo [ %DATE% ][ %TIME:~ 0 , -3 % ] $ %* > CON
307
+ call : print_to_console $ %*
303
308
call %*
304
309
exit /b %ERRORLEVEL%
0 commit comments