From 2d5505d66cf894deb2a4f4c83eac92fb5df5fcf0 Mon Sep 17 00:00:00 2001 From: markummitchell Date: Sat, 7 Oct 2017 10:07:18 -0700 Subject: [PATCH] Issue error when test does not compile [ci skip] --- src/build_and_run_all_cli_tests | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/build_and_run_all_cli_tests b/src/build_and_run_all_cli_tests index b4e23ccf..64d28942 100755 --- a/src/build_and_run_all_cli_tests +++ b/src/build_and_run_all_cli_tests @@ -89,7 +89,11 @@ else do sed "s/TEST/$t/g" engauge_test_template.pro >engauge_test.pro qmake $CONFIGARGS engauge_test.pro - make all 2>>$LOGFILE >/dev/null + make all 2>>$LOGFILE >/dev/null || { + echo "FAIL : Compilation error is described in build_and_run_all_cli_tests" + echo " Testing will be stopped" + exit 1 + } ../bin/$t if [ $selectedCount -ne 1 ] then