webktpy: Fix device regular expression for parsing simctl output
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2017 17:12:33 +0000 (17:12 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Mar 2017 17:12:33 +0000 (17:12 +0000)
commitb17ffa16ec0570a1159f1ea737d5227f8ab3df72
treeb85999422c7f6c39abce8379dd2cf6f22124757d
parent6236809a229d65522dfb8b08aee2b264f3b661a4
webktpy: Fix device regular expression for parsing simctl output
https://bugs.webkit.org/show_bug.cgi?id=169757

Reviewed by Alex Christensen.

If a device is unavailable, the changes in r213164 mean that the
name of the device will consume the UDID and return the state as
the device UDID and the availability string as the device state.

* Scripts/webkitpy/xcode/simulator.py:
(Simulator): Make UDID regular expression more strict.
* Scripts/webkitpy/xcode/simulator_unittest.py: Test an unavailable device.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/xcode/simulator.py
Tools/Scripts/webkitpy/xcode/simulator_unittest.py