From: Pat Gavlin Date: Thu, 16 Mar 2017 23:37:16 +0000 (-0700) Subject: Fix test failure detection when dumps are enabled. X-Git-Tag: accepted/tizen/base/20180629.140029~1853^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03bce7880d867b85e39616cf5d0f13e9850167c5;p=platform%2Fupstream%2Fcoreclr.git Fix test failure detection when dumps are enabled. --- diff --git a/tests/runtest.cmd b/tests/runtest.cmd index d7f5713..58d4efb 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