From 660f7e155a023b4d0603b330da135bf28cb629af Mon Sep 17 00:00:00 2001 From: macbishop Date: Sun, 26 Sep 2004 15:07:06 +0000 Subject: [PATCH] Now return 0 if all tests fail and 1 if any test fail --- tests/runtests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/runtests.sh b/tests/runtests.sh index 0dedbfa..e437a72 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -21,3 +21,7 @@ echo " TOTAL: $total" echo " OK: $suc" echo "FAILED: $fail" +if [ $fail -ne 0 ]; then + exit 1 +fi +