From e17e3b2ceee62fdc45486e966c623e834a559ca2 Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Wed, 12 Jun 2019 15:25:55 -0700 Subject: [PATCH] abort build-tests if failed to restore stress dependencies --- build-test.cmd | 4 ++++ build-test.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/build-test.cmd b/build-test.cmd index 39c38d415e5f..e07c926d059b 100644 --- a/build-test.cmd +++ b/build-test.cmd @@ -180,6 +180,10 @@ REM === REM ========================================================================================= call "%__TestDir%\setup-stress-dependencies.cmd" /arch %__BuildArch% /outputdir %__BinDir% +if errorlevel 1 ( + echo %__MsgPrefix%Error: setup-stress-dependencies failed. + goto :Exit_Failure +) @if defined _echo @echo on REM ========================================================================================= diff --git a/build-test.sh b/build-test.sh index aa25c85bc661..b77cacb9bb02 100755 --- a/build-test.sh +++ b/build-test.sh @@ -159,6 +159,10 @@ generate_layout() nextCommand="\"$__TestDir/setup-stress-dependencies.sh\" --outputDir=$CORE_ROOT" echo "Resolve runtime dependences via $nextCommand" eval $nextCommand + if [ $? != 0 ]; then + echo "${__MsgPrefix}Error: setup-stress-dependencies failed." + exit 1 + fi fi # Precompile framework assemblies with crossgen if required