test/check.sh: return proper status code on error

This commit is contained in:
illiliti 2021-07-31 21:37:49 +03:00
parent 189756fce2
commit 4a16c0f042

View File

@ -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" ]