From 80653e791a6a0d704f9512107e9b8ecc318e2b50 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 18 Feb 2020 13:34:54 +0100 Subject: [PATCH] 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. --- tests/run-tests | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run-tests b/tests/run-tests index c55bc4b..bf81b83 100755 --- a/tests/run-tests +++ b/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 ""