mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-11 08:05:24 -04: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
160df1d136
commit
c1ae9f95bf
@ -1445,8 +1445,7 @@ done
|
||||
|
||||
echo "------------------------------------------------------------------------"
|
||||
|
||||
if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ];
|
||||
then
|
||||
if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ]; then
|
||||
printf "FAILED"
|
||||
else
|
||||
printf "PASSED"
|
||||
@ -1462,4 +1461,9 @@ PASSED=$(( $TESTS - $FAILED ))
|
||||
echo " ($PASSED / $TESTS tests ($SKIPPED skipped$MEMREPORT))"
|
||||
|
||||
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
|
||||
|
@ -10576,4 +10576,9 @@ fi
|
||||
PASSES=$(( $TESTS - $FAILS ))
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user