Exit on failure of HelixPrep.proj
authorwtgodbe <wigodbe@microsoft.com>
Wed, 26 Apr 2017 18:29:10 +0000 (11:29 -0700)
committerwtgodbe <wigodbe@microsoft.com>
Wed, 26 Apr 2017 18:29:10 +0000 (11:29 -0700)
build-test.cmd
tests/helixprep.proj

index 514bb23..7c38ac8 100644 (file)
@@ -397,6 +397,13 @@ REM ===
 REM =========================================================================================
 
 call %__ProjectDir%\run.cmd build -Project=%__ProjectDir%\tests\helixprep.proj  -MsBuildLog=!__msbuildLog! -MsBuildWrn=!__msbuildWrn! -MsBuildErr=!__msbuildErr! %__RunArgs% %__BuildAgainstPackagesArg% %RuntimeIdArg% %TargetsWindowsArg% %__CrossgenArg% %__unprocessedBuildArgs%
+if errorlevel 1 (
+    echo %__MsgPrefix%Error: build failed. Refer to the build log files for details:
+    echo     %__BuildLog%
+    echo     %__BuildWrn%
+    echo     %__BuildErr%
+    exit /b 1
+)
 
 echo %__MsgPrefix% Prepped test binaries for publishing
 
index 22c5935..e49e564 100644 (file)
@@ -74,7 +74,7 @@
     Condition="'$(TargetsWindows)' == 'true' ">
 
     <PropertyGroup>
-      <CmdCrossgenVar Condition="'$(Crossgen)' == 'true'">set RunCrossGen=true</CrossgenVar>
+      <CmdCrossgenVar Condition="'$(Crossgen)' == 'true'">set RunCrossGen=true</CmdCrossgenVar>
       <WrapperCmdContents>
         <![CDATA[
 @ECHO OFF