Title: [201244] trunk/Tools
Revision
201244
Author
aakash_j...@apple.com
Date
2016-05-21 12:21:31 -0700 (Sat, 21 May 2016)

Log Message

Simulator launch fails intermittently due to failure in checking simulator boot status
https://bugs.webkit.org/show_bug.cgi?id=157965
rdar://problem/26402404

Reviewed by Alexey Proskuryakov.

* Scripts/webkitpy/xcode/simulator.py:
(Simulator.wait_until_device_is_booted): Ignore CalledProcessError exception while checking
whether simulator has finished booting.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (201243 => 201244)


--- trunk/Tools/ChangeLog	2016-05-21 18:42:21 UTC (rev 201243)
+++ trunk/Tools/ChangeLog	2016-05-21 19:21:31 UTC (rev 201244)
@@ -1,3 +1,15 @@
+2016-05-21  Aakash Jain  <aakash_j...@apple.com>
+
+        Simulator launch fails intermittently due to failure in checking simulator boot status
+        https://bugs.webkit.org/show_bug.cgi?id=157965
+        rdar://problem/26402404
+
+        Reviewed by Alexey Proskuryakov.
+
+        * Scripts/webkitpy/xcode/simulator.py:
+        (Simulator.wait_until_device_is_booted): Ignore CalledProcessError exception while checking
+        whether simulator has finished booting.
+
 2016-05-21  Dan Bernstein  <m...@apple.com>
 
         Silence warnings from svn propget when using newer versions of Subversion.

Modified: trunk/Tools/Scripts/webkitpy/xcode/simulator.py (201243 => 201244)


--- trunk/Tools/Scripts/webkitpy/xcode/simulator.py	2016-05-21 18:42:21 UTC (rev 201243)
+++ trunk/Tools/Scripts/webkitpy/xcode/simulator.py	2016-05-21 19:21:31 UTC (rev 201244)
@@ -278,9 +278,12 @@
         Simulator.wait_until_device_is_in_state(udid, Simulator.DeviceState.BOOTED, timeout_seconds)
         with timeout(seconds=timeout_seconds):
             while True:
-                state = subprocess.check_output(['xcrun', 'simctl', 'spawn', udid, 'launchctl', 'print', 'system']).strip()
-                if re.search("A[\s]+com.apple.springboard.services", state):
-                    return
+                try:
+                    state = subprocess.check_output(['xcrun', 'simctl', 'spawn', udid, 'launchctl', 'print', 'system']).strip()
+                    if re.search("A[\s]+com.apple.springboard.services", state):
+                        return
+                except subprocess.CalledProcessError:
+                    _log.warn("Error in checking Simulator boot status.")
                 time.sleep(1)
 
     @staticmethod
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to