Changeset 239344 in webkit


Ignore:
Timestamp:
Dec 18, 2018 11:42:55 AM (5 years ago)
Author:
Jonathan Bedard
Message:

webkitpy: Ignore device type for test when using --force
https://bugs.webkit.org/show_bug.cgi?id=192786
<rdar://problem/46794894>

Reviewed by Daniel Bates.

It is sometimes the case that a contributor will wish to run a test on a specific device,
despite expectations which indicate a test should not be run on that device.

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:

(parse_args):

  • Scripts/webkitpy/port/device_port.py:

(DevicePort.default_child_processes): Strip device type information when using --force.
(DevicePort.setup_test_run): Only allow incomplete match when using --force.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r239339 r239344  
     12018-12-18  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpy: Ignore device type for test when using --force
     4        https://bugs.webkit.org/show_bug.cgi?id=192786
     5        <rdar://problem/46794894>
     6
     7        Reviewed by Daniel Bates.
     8
     9        It is sometimes the case that a contributor will wish to run a test on a specific device,
     10        despite expectations which indicate a test should not be run on that device.
     11
     12        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     13        (parse_args):
     14        * Scripts/webkitpy/port/device_port.py:
     15        (DevicePort.default_child_processes): Strip device type information when using --force.
     16        (DevicePort.setup_test_run): Only allow incomplete match when using --force.
     17
    1182018-12-18  Alex Christensen  <achristensen@webkit.org>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r238950 r239344  
    242242                 "'always' == always skip, even if listed on the command line.")),
    243243        optparse.make_option("--force", action="store_true", default=False,
    244             help="Run all tests with PASS as expected result, even those marked SKIP in the test list (implies --skipped=ignore)"),
     244            help="Run all tests with PASS as expected result, even those marked SKIP in the test list or " + \
     245                 "those which are device-specific (implies --skipped=ignore)"),
    245246        optparse.make_option("--time-out-ms",
    246247            help="Set the timeout for each test"),
  • trunk/Tools/Scripts/webkitpy/port/device_port.py

    r238966 r239344  
    124124            return 0
    125125
     126        if self.get_option('force'):
     127            device_type.hardware_family = None
     128            device_type.hardware_type = None
     129
    126130        return self.DEVICE_MANAGER.device_count_for_type(
    127131            self._device_type_with_version(device_type),
     
    147151            use_booted_simulator=not self.get_option('dedicated_simulators', False),
    148152            use_existing_simulator=False,
    149             allow_incomplete_match=True,
     153            allow_incomplete_match=self.get_option('force'),
    150154        )
    151155        self.DEVICE_MANAGER.initialize_devices(
Note: See TracChangeset for help on using the changeset viewer.