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

View File

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