diff options
author | Pat Gavlin <pgavlin@gmail.com> | 2017-03-16 17:08:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 17:08:05 -0700 |
commit | 54368dad5842089ed7b6a444fa50116d2c0a0b09 (patch) | |
tree | 46e850c4978f3a937914b3728fa2486aee08d8ea | |
parent | a49486160e8b822609dae192ad5606bfc5c4ec05 (diff) | |
parent | 03bce7880d867b85e39616cf5d0f13e9850167c5 (diff) | |
download | coreclr-54368dad5842089ed7b6a444fa50116d2c0a0b09.tar.gz coreclr-54368dad5842089ed7b6a444fa50116d2c0a0b09.tar.bz2 coreclr-54368dad5842089ed7b6a444fa50116d2c0a0b09.zip |
Merge pull request #10240 from pgavlin/fixerrorlevel
Fix test failure detection when dumps are enabled.
-rw-r--r-- | tests/runtest.cmd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd index d7f5713abd..58d4efbcf1 100644 --- a/tests/runtest.cmd +++ b/tests/runtest.cmd @@ -233,12 +233,13 @@ del %CORE_ROOT%\mscorlib.ni.dll set __BuildLogRootName=TestRunResults call :msbuild "%__ProjectFilesDir%\runtest.proj" /p:Runtests=true /clp:showcommandline +set __errorlevel=%errorlevel% if "%__CollectDumps%"=="true" ( python "%__DumplingHelperPath%" collect_dump %errorlevel% "%__CrashDumpFolder%" %__StartTime% "CoreCLR_Tests" ) -if errorlevel 1 ( +if %__errorlevel% GEQ 1 ( echo Test Run failed. Refer to the following: echo Html report: %__TestRunHtmlLog% exit /b 1 |