webkitpy: Implement device type specific expected results (Follow-up fix)
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2019 17:54:52 +0000 (17:54 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2019 17:54:52 +0000 (17:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=192162
<rdar://problem/46345449>

Unreviewed infrastructure fix.

* Scripts/webkitpy/layout_tests/controllers/manager.py:
(Manager.run): Don't boot a device if no tests are available to run on it.

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

Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

index 9beb945..672a6a0 100644 (file)
@@ -6,6 +6,17 @@
 
         Unreviewed infrastructure fix.
 
+        * Scripts/webkitpy/layout_tests/controllers/manager.py:
+        (Manager.run): Don't boot a device if no tests are available to run on it.
+
+2019-01-18  Jonathan Bedard  <jbedard@apple.com>
+
+        webkitpy: Implement device type specific expected results (Follow-up fix)
+        https://bugs.webkit.org/show_bug.cgi?id=192162
+        <rdar://problem/46345449>
+
+        Unreviewed infrastructure fix.
+
         * Scripts/webkitpy/api_tests/manager.py:
         (Manager._initialize_devices): Use DEVICE_TYPE when running API tests.
 
index c9b029d..0407290 100644 (file)
@@ -252,6 +252,8 @@ class Manager(object):
 
             _log.info('Running {}{}'.format(pluralize(len(tests_to_run_by_device[device_type]), 'test'), ' for {}'.format(str(device_type)) if device_type else ''))
             _log.info('')
+            if not tests_to_run_by_device[device_type]:
+                continue
             if not self._set_up_run(tests_to_run_by_device[device_type], device_type=device_type):
                 return test_run_results.RunDetails(exit_code=-1)