tests: Make sure tests do not return with 0 on failure

The run-tests script that runs the two testsuites for the two different
supported card models returns 0, even when the tests fail. This tricks
jenkins into thinking everything were ok. Lets make sure the script is
stopped immediately and returns with 1 when the tests fail.
This commit is contained in:
Philipp Maier 2020-02-18 13:34:54 +01:00
parent 149da081c1
commit 80653e791a
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,9 @@ cd ./sjs1
echo "Location $PWD"
echo ""
sh ./run-tests
if [ ! $? -eq 0 ]; then
exit 1
fi
cd ..
echo ""
echo ""
@ -21,6 +24,9 @@ cd ./sja2
echo "Location $PWD"
echo ""
sh ./run-tests
if [ ! $? -eq 0 ]; then
exit 1
fi
cd ..
echo ""
echo ""