Fix return codes from cryptest-ios.sh

This commit is contained in:
Jeffrey Walton 2018-04-05 18:38:43 -04:00
parent 1103819a86
commit 7065702ba1
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 12 additions and 1 deletions

View File

@ -59,5 +59,7 @@ cat /tmp/build.log
# let the script fail if any of the builds failed
if [ -f /tmp/build.failed ]; then
exit 1
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 0 || return 0

View File

@ -50,3 +50,12 @@ do
touch /tmp/build.failed
fi
done
cat /tmp/build.log
# let the script fail if any of the builds failed
if [ -f /tmp/build.failed ]; then
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 0 || return 0