mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-23 16:20:49 +00:00
Have compat.sh and ssl-opt.sh not return success for > 255 errors
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
656a81ecf8
commit
fc0e79e70f
@ -1106,8 +1106,7 @@ done
|
|||||||
|
|
||||||
echo "------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------"
|
||||||
|
|
||||||
if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ];
|
if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ]; then
|
||||||
then
|
|
||||||
printf "FAILED"
|
printf "FAILED"
|
||||||
else
|
else
|
||||||
printf "PASSED"
|
printf "PASSED"
|
||||||
@ -1123,4 +1122,9 @@ PASSED=$(( $TESTS - $FAILED ))
|
|||||||
echo " ($PASSED / $TESTS tests ($SKIPPED skipped$MEMREPORT))"
|
echo " ($PASSED / $TESTS tests ($SKIPPED skipped$MEMREPORT))"
|
||||||
|
|
||||||
FAILED=$(( $FAILED + $SRVMEM ))
|
FAILED=$(( $FAILED + $SRVMEM ))
|
||||||
|
if [ $FAILED -gt 255 ]; then
|
||||||
|
# Clamp at 255 as caller gets exit code & 0xFF
|
||||||
|
# (so 256 would be 0, or success, etc)
|
||||||
|
FAILED=255
|
||||||
|
fi
|
||||||
exit $FAILED
|
exit $FAILED
|
||||||
|
@ -13312,4 +13312,9 @@ fi
|
|||||||
PASSES=$(( $TESTS - $FAILS ))
|
PASSES=$(( $TESTS - $FAILS ))
|
||||||
echo " ($PASSES / $TESTS tests ($SKIPS skipped))"
|
echo " ($PASSES / $TESTS tests ($SKIPS skipped))"
|
||||||
|
|
||||||
|
if [ $FAILS -gt 255 ]; then
|
||||||
|
# Clamp at 255 as caller gets exit code & 0xFF
|
||||||
|
# (so 256 would be 0, or success, etc)
|
||||||
|
FAILS=255
|
||||||
|
fi
|
||||||
exit $FAILS
|
exit $FAILS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user