diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-02-17 13:00:36 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-02-17 13:00:36 +0000 |
commit | 840e30c5fd001d555e6ed75ab6d287cd5863fc09 (patch) | |
tree | fcdd5143cd3e427c043aa5d1ed9800e326a60dc3 /UnitTesting/RunIPhoneUnitTest.sh | |
parent | a0a62fb5e161f26fce30a58cfcd505a5cf0dbdbc (diff) |
[Author: msenesi]
RunIPhoneUnitTest.sh - File exist bug fix
R=dmaclach,honza
APPROVED=dmaclach
DELTA=5 (5 added, 0 deleted, 0 changed)
Diffstat (limited to 'UnitTesting/RunIPhoneUnitTest.sh')
-rwxr-xr-x | UnitTesting/RunIPhoneUnitTest.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/UnitTesting/RunIPhoneUnitTest.sh b/UnitTesting/RunIPhoneUnitTest.sh index 69d3d8c..7721fcd 100755 --- a/UnitTesting/RunIPhoneUnitTest.sh +++ b/UnitTesting/RunIPhoneUnitTest.sh @@ -116,6 +116,11 @@ if [ "$PLATFORM_NAME" == "iphonesimulator" ]; then fi if [ $GTM_DISABLE_IPHONE_LAUNCH_DAEMONS -eq 0 ]; then + # Remove any instance of RunIPhoneLaunchDaemons left running in the case the + # 'trap' below fails. We first must check for RunIPhoneLaunchDaemons' + # presence as 'launchctl remove' will kill this script if run from within an + # Xcode build. + launchctl list | grep RunIPhoneLaunchDaemons && launchctl remove RunIPhoneLaunchDaemons # If we want to test anything that interacts with the keychain, we need # securityd up and running. See RunIPhoneLaunchDaemons.sh for details. launchctl submit -l RunIPhoneLaunchDaemons -- "${ScriptDir}/RunIPhoneLaunchDaemons.sh" $IPHONE_SIMULATOR_ROOT $CFFIXED_USER_HOME |