Skip to content

Commit

Permalink
Make sure simulator gets deleted even on error
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Aug 1, 2023
1 parent 2aaf026 commit a5f684a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -eE
trap 'xcrun simctl delete "$DEVICE_ID"' ERR

# Parse named arguments
while [[ $# -gt 0 ]]; do
Expand Down Expand Up @@ -97,7 +98,6 @@ else
)
fi

# Remove ephemeral simulator
echo "Removing ephemeral simulator"
xcrun simctl delete "$DEVICE_ID"

Expand Down

0 comments on commit a5f684a

Please sign in to comment.