From c2fffa772c8223c15ab90181342ed13a297d3fdf Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 4 Oct 2019 14:41:29 +0000 Subject: [PATCH] Exit the tests.sh-script with 0 if all tests succeded, 1 otherwise --- gebuilder/tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gebuilder/tests.sh b/gebuilder/tests.sh index 736f160..8d14fff 100755 --- a/gebuilder/tests.sh +++ b/gebuilder/tests.sh @@ -21,6 +21,8 @@ fi declare TEST +exitcode=0 + for TEST in "${GEBUILDER_ROOT}/tests/"*.sh do if [ ! -x "$TEST" ] @@ -34,6 +36,7 @@ do ok "$TEST ok" else error "$TEST failed" + exitcode=1 fi done @@ -42,4 +45,5 @@ do echo "$line" done -clean_exit +cleanup +exit $exitcode