webkitpy: Respect --dedicated-simulators flag
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 22:57:56 +0000 (22:57 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 22:57:56 +0000 (22:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194416
<rdar://problem/47894722>

Reviewed by Lucas Forschler.

* Scripts/webkitpy/port/device_port.py:
(DevicePort.supported_device_types): If --dedicated-simulators is passed, all
available devices can be safely ignored.

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

Tools/ChangeLog
Tools/Scripts/webkitpy/port/device_port.py

index 1c35c23..3014a68 100644 (file)
@@ -1,3 +1,15 @@
+2019-02-07  Jonathan Bedard  <jbedard@apple.com>
+
+        webkitpy: Respect --dedicated-simulators flag
+        https://bugs.webkit.org/show_bug.cgi?id=194416
+        <rdar://problem/47894722>
+
+        Reviewed by Lucas Forschler.
+
+        * Scripts/webkitpy/port/device_port.py:
+        (DevicePort.supported_device_types): If --dedicated-simulators is passed, all
+        available devices can be safely ignored.
+
 2019-02-07  Keith Rollin  <krollin@apple.com>
 
         Remove extra copy of 100x100-red.tga
index ab56c09..8fbca5c 100644 (file)
@@ -143,7 +143,7 @@ class DevicePort(DarwinPort):
                 continue
             if device.device_type in self.DEVICE_TYPE:
                 types.add(device.device_type)
-        if types:
+        if types and not self.get_option('dedicated_simulators', False):
 
             def sorted_by_default_device_type(type):
                 try: