Skip to content

Commit c722fd5

Browse files
Failing to install on iPad simulators
https://bugs.webkit.org/show_bug.cgi?id=174532 <rdar://problem/33328347> Reviewed by Stephanie Lewis. * Scripts/webkitpy/xcode/simulated_device.py: (SimulatedDevice.install_app): Place install command in retry try-except block. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@219534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 96460da commit c722fd5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Tools/ChangeLog

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2017-07-14 Jonathan Bedard <[email protected]>
2+
3+
Failing to install on iPad simulators
4+
https://bugs.webkit.org/show_bug.cgi?id=174532
5+
<rdar://problem/33328347>
6+
7+
Reviewed by Stephanie Lewis.
8+
9+
* Scripts/webkitpy/xcode/simulated_device.py:
10+
(SimulatedDevice.install_app): Place install command in retry try-except block.
11+
112
2017-07-14 Jeff Miller <[email protected]>
213

314
Add test for -[WKProcessPool _setObjectsForBundleParametersWithDictionary:].

Tools/Scripts/webkitpy/xcode/simulated_device.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import signal
2626
import subprocess
2727

28+
from webkitpy.common.system.executive import ScriptError
2829
from webkitpy.xcode.simulator import Simulator
2930
from webkitpy.common.host import Host
3031

@@ -141,9 +142,8 @@ def reset(cls, udid):
141142
def install_app(self, app_path, env=None):
142143
# FIXME: This is a workaround for <rdar://problem/30273973>, Racey failure of simctl install.
143144
for x in xrange(3):
144-
if self._host.executive.run_command(['xcrun', 'simctl', 'install', self.udid, app_path], return_exit_code=True):
145-
return False
146145
try:
146+
self._host.executive.run_command(['xcrun', 'simctl', 'install', self.udid, app_path])
147147
bundle_id = self._host.executive.run_command([
148148
'/usr/libexec/PlistBuddy',
149149
'-c',
@@ -152,7 +152,7 @@ def install_app(self, app_path, env=None):
152152
]).rstrip()
153153
self._host.executive.kill_process(self.launch_app(bundle_id, [], env=env, timeout=10))
154154
return True
155-
except RuntimeError:
155+
except (RuntimeError, ScriptError):
156156
pass
157157
return False
158158

0 commit comments

Comments
 (0)