From 4a16c0f042935520672533c542a5b556a1bba04b Mon Sep 17 00:00:00 2001 From: illiliti Date: Sat, 31 Jul 2021 21:37:49 +0300 Subject: [PATCH] test/check.sh: return proper status code on error --- test/check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/check.sh b/test/check.sh index 38f416c..c7c6f43 100755 --- a/test/check.sh +++ b/test/check.sh @@ -44,8 +44,10 @@ for file; do case $? in 222) status=SKIP ;; 0) status=PASS ;; - *) status=FAIL ;; + *) status=FAIL failed=1 ;; esac printf '%s: %s\n' "$file" "$status" >&2 done + +[ -z "$failed" ]