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:
parent
149da081c1
commit
80653e791a
|
@ -7,6 +7,9 @@ cd ./sjs1
|
||||||
echo "Location $PWD"
|
echo "Location $PWD"
|
||||||
echo ""
|
echo ""
|
||||||
sh ./run-tests
|
sh ./run-tests
|
||||||
|
if [ ! $? -eq 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -21,6 +24,9 @@ cd ./sja2
|
||||||
echo "Location $PWD"
|
echo "Location $PWD"
|
||||||
echo ""
|
echo ""
|
||||||
sh ./run-tests
|
sh ./run-tests
|
||||||
|
if [ ! $? -eq 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue