diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2017-03-16 16:37:16 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2017-03-16 16:41:21 -0700 |
commit | 03bce7880d867b85e39616cf5d0f13e9850167c5 (patch) | |
tree | 46e850c4978f3a937914b3728fa2486aee08d8ea /tests/runtest.cmd | |
parent | a49486160e8b822609dae192ad5606bfc5c4ec05 (diff) | |
download | coreclr-03bce7880d867b85e39616cf5d0f13e9850167c5.tar.gz coreclr-03bce7880d867b85e39616cf5d0f13e9850167c5.tar.bz2 coreclr-03bce7880d867b85e39616cf5d0f13e9850167c5.zip |
Fix test failure detection when dumps are enabled.
Diffstat (limited to 'tests/runtest.cmd')
-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 |