diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-05-23 19:38:59 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-05-25 12:20:09 -0400 |
commit | b322ee9200172276b8d4935c623728129d62c3ef (patch) | |
tree | e691ce375e63737ac36635326cddbaf14042525e /buildscripts/runiossim.sh | |
parent | 8c3738f1be3f42c0aee4d82f8deec547d8e74e8c (diff) | |
download | mongo-b322ee9200172276b8d4935c623728129d62c3ef.tar.gz |
SERVER-33889 Remove auditing command from embedded
Diffstat (limited to 'buildscripts/runiossim.sh')
-rwxr-xr-x | buildscripts/runiossim.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/buildscripts/runiossim.sh b/buildscripts/runiossim.sh index 73cfe8ffe28..77e0be6b75d 100755 --- a/buildscripts/runiossim.sh +++ b/buildscripts/runiossim.sh @@ -25,23 +25,30 @@ shift cleanup() { echo "Shutting down simulator" - xcrun simctl shutdown $_SimId + xcrun simctl shutdown $_SimId || true echo "Erasing simulator" - xcrun simctl erase $_SimId + xcrun simctl erase $_SimId || true echo "Deleting simulator" - xcrun simctl delete $_SimId + xcrun simctl delete $_SimId || true + + echo "Exiting with status $1" + exit $1 } echo "Creating simulator" _SimId=$(xcrun simctl create mongodb-simulator-$DEVICE.$RUNTIME "com.apple.CoreSimulator.SimDeviceType.$DEVICE" "com.apple.CoreSimulator.SimRuntime.$RUNTIME") echo "Simulator created with ID $_SimId" -trap cleanup EXIT +trap 'cleanup $?' INT TERM EXIT echo "Booting simulator" xcrun simctl boot $_SimId echo "Spawning test program in simulator" xcrun simctl spawn $_SimId "$TEST" "$@" + +# Do not add additional statements after the above spawn without +# forwarding its exit status or you will cause failing tests to appear +# to succeed. |