test/check.sh: return proper status code on error
This commit is contained in:
parent
189756fce2
commit
4a16c0f042
@ -44,8 +44,10 @@ for file; do
|
|||||||
case $? in
|
case $? in
|
||||||
222) status=SKIP ;;
|
222) status=SKIP ;;
|
||||||
0) status=PASS ;;
|
0) status=PASS ;;
|
||||||
*) status=FAIL ;;
|
*) status=FAIL failed=1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
printf '%s: %s\n' "$file" "$status" >&2
|
printf '%s: %s\n' "$file" "$status" >&2
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -z "$failed" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user