From cdffaa071229272f3ce5ee5965a796fb01dceeb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 18 Oct 2016 22:14:44 +0200 Subject: [PATCH] Fix travis runs of testpaint `build.sh` script has `set -e` in the invocation, it fails the script before we have a chance to inspect exit code of `testpaint`. This melds checking of exit status into one command, so bash won't fail it early. --- scripts/linux/build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/linux/build.sh b/scripts/linux/build.sh index 2907f71d5b..019366c749 100755 --- a/scripts/linux/build.sh +++ b/scripts/linux/build.sh @@ -75,8 +75,7 @@ pushd build # NOT the same variable as above # this target also includes building & running of testpaint make $OPENRCT2_MAKE_OPTS testpaint - ./testpaint --silent - if [[ $? == 1 ]] ; then echo Allowing failed tests to pass ; fi + ./testpaint --silent || if [[ $? -eq 1 ]] ; then echo Allowing failed tests to pass ; else false; fi else cmake $OPENRCT2_CMAKE_OPTS .. # NOT the same variable as above