Check for com.apple.datamigrator before declaring simulators booted
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 May 2018 20:08:16 +0000 (20:08 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 May 2018 20:08:16 +0000 (20:08 +0000)
commitebac756b977a46dfaac55f309e97f00a6bdab30e
tree6a8808d9d65626ac8fdef25d8e871e4ee8967613
parentdba87542a7b5f47b57457582fd879b5657fab6dc
Check for com.apple.datamigrator before declaring simulators booted
https://bugs.webkit.org/show_bug.cgi?id=185315
<rdar://problem/39986261>

Reviewed by David Kilzer.

* Scripts/webkitdirs.pm:
(waitUntilProcessNotRunning): Wait until a process is not found.
(relaunchIOSSimulator): Wait until com.apple.datamigrator stops running to declare
a simulator booted.
* Scripts/webkitpy/common/system/executive_mock.py:
(MockExecutive2.__init__): Define _running_pids.
* Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDeviceManager.initialize_devices): Call wait_until_data_migration_is_done before
declaring that devices have been booted, increase the timeout since data migration will frequently
take longer than 60 seconds, especially with multiple simulators booting.
(SimulatedDeviceManager.swap): Ditto.
(SimulatedDeviceManager):
(SimulatedDeviceManager.wait_until_data_migration_is_done): Wait until there are no com.apple.datamigrator
processes running.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitdirs.pm
Tools/Scripts/webkitpy/common/system/executive_mock.py
Tools/Scripts/webkitpy/xcode/simulated_device.py