webkitpy: Use host pattern for devices
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Mar 2017 14:06:49 +0000 (14:06 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Mar 2017 14:06:49 +0000 (14:06 +0000)
commitb921e76533bf97421920dd12f1eef7bc7e0970bd
tree8db56bd3c1ccf61a5654a755ec93db94ea3b79bc
parent81391512c654fa0b5bbc0c3843d44cdf14cae092
webkitpy: Use host pattern for devices
https://bugs.webkit.org/show_bug.cgi?id=170121

Reviewed by Daniel Bates.

Devices should be treated like hosts throughout webkitpy
so that more code can be re-used.  Add the needed properties
and use executive over custom implemented polling/killing
functions.

* Scripts/webkitpy/port/device.py:
(Device):
(Device.executive): Add optional executive property.
(Device.filesystem): Add optional filesystem property.
(Device.user): Add optional user property.
(Device.platform): Add optional platform property.
(Device.workspace): Add optional workspace property.
(Device.poll): Deleted.
* Scripts/webkitpy/port/simulator_process.py:
(SimulatorProcess.Popen.poll): Use the devices executive.
(SimulatorProcess.stop): Ditto.
(SimulatorProcess._kill): Ditto.
* Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDevice.__init__): Add executive, filesystem, user, platform
and workspace to the platform device.
(SimulatedDevice.poll): Deleted.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@214473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/port/device.py
Tools/Scripts/webkitpy/port/simulator_process.py
Tools/Scripts/webkitpy/xcode/simulated_device.py