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.
This commit is contained in:
Michał Janiszewski 2016-10-18 22:14:44 +02:00
parent 3dcebfc97f
commit cdffaa0712
1 changed files with 1 additions and 2 deletions

View File

@ -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