webkitpy: simctl cannot handle partial runtime version matches
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Dec 2017 04:37:55 +0000 (04:37 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Dec 2017 04:37:55 +0000 (04:37 +0000)
commit4964e026b4bdf1b91d78a9f034ac58d7f093f79a
tree2561f4c96fb6b8ee21b7999cd547b0b2fb504a9a
parent15b308e17a14e19d75e0a1d309799d68e2cdbae4
webkitpy: simctl cannot handle partial runtime version matches
https://bugs.webkit.org/show_bug.cgi?id=181055
<rdar://problem/36163798>

Reviewed by Alexey Proskuryakov.

A request for a simulator runtime of iOS 11 should be fulfilled by
iOS 11.0.1.

* Scripts/webkitpy/xcode/simulator.py:
(Simulator.runtime): Allow for partial matching of iOS runtime versions.
* Scripts/webkitpy/xcode/simulator_unittest.py:
(test_failed_partial_version_match): Test that partial version mapping does
not give false positives.

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