Browse Source

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.
for/master/ret
Philipp Maier 2 years ago
parent
commit
80653e791a
  1. 6
      tests/run-tests

6
tests/run-tests

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

Loading…
Cancel
Save