tests: Accept 77 error code

This can happen in some cases (e.g. outdated umockdev), so accept error
77 (skipped test).
This commit is contained in:
Benjamin Berg 2021-08-25 15:02:14 +02:00
parent 41b48ba54b
commit d4c27761b3
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ for test in ${TESTS[@]}; do
RES=$?
echo "$test finished with return code $RES"
echo ""
((RESULT += $RES))
# Ignore skipped tests
if [ $RES -ne 0 -a $RES -ne 77 ]; then
RESULT=1
fi
done
exit $RESULT