error running layout tests on iOS simulator on latest build
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 02:16:48 +0000 (02:16 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 02:16:48 +0000 (02:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152719
<rdar://problem/24009549>

Reviewed by Alexey Proskuryakov.

* Scripts/webkitpy/xcode/simulator.py:
(Simulator.wait_until_device_is_booted): Ensure that simulator device is in booted state
  before running simctl spawn command.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194569 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/xcode/simulator.py

index 3965d5d..9a57597 100644 (file)
@@ -1,3 +1,15 @@
+2016-01-04  Aakash Jain  <aakash_jain@apple.com>
+
+        error running layout tests on iOS simulator on latest build
+        https://bugs.webkit.org/show_bug.cgi?id=152719
+        <rdar://problem/24009549>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * Scripts/webkitpy/xcode/simulator.py:
+        (Simulator.wait_until_device_is_booted): Ensure that simulator device is in booted state
+          before running simctl spawn command.
+
 2016-01-03  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         Unreviewed, move Frédéric Wang to committers list
index 4e1a910..3dc27eb 100644 (file)
@@ -275,6 +275,7 @@ class Simulator(object):
 
     @staticmethod
     def wait_until_device_is_booted(udid, timeout_seconds=60 * 5):
+        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()