From 0c77107041a96fa5dc900bea25160feade791e29 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 21 Mar 2018 11:09:14 +0545 Subject: [PATCH] issue #96: fail test.sh if any test fails --- test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index cb0c42c3..c252950b 100755 --- a/test.sh +++ b/test.sh @@ -24,5 +24,10 @@ sys.exit(1) for f in tests/*_test.py; do echo $f - timeout 10 python $f + timeout 10 python $f || fail=1 done + +if [ "$fail" ]; then + echo "AT LEAST ONE TEST FAILED" >&2 + exit 1 +fi