Changeset 181280 in webkit


Ignore:
Timestamp:
Mar 9, 2015 1:51:38 PM (9 years ago)
Author:
jer.noble@apple.com
Message:

Add an option to run-webkit-tests to override the LayoutTests/ directory
https://bugs.webkit.org/show_bug.cgi?id=142418

Reviewed by David Kilzer.

Add an arugment to run-webkit-tests which, when set, overrides the port's default LayoutTests
directory. The base port will parse the options during initialization and store the override
location if present. layout_tests_dir() will return this overridden location if set.

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:

(parse_args):

  • Scripts/webkitpy/port/base.py:

(Port.init):
(Port.layout_tests_dir):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r181275 r181280  
     12015-03-06  Jer Noble  <jer.noble@apple.com>
     2
     3        Add an option to run-webkit-tests to override the LayoutTests/ directory
     4        https://bugs.webkit.org/show_bug.cgi?id=142418
     5
     6        Reviewed by David Kilzer.
     7
     8        Add an arugment to run-webkit-tests which, when set, overrides the port's default LayoutTests
     9        directory. The base port will parse the options during initialization and store the override
     10        location if present. layout_tests_dir() will return this overridden location if set.
     11
     12        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     13        (parse_args):
     14        * Scripts/webkitpy/port/base.py:
     15        (Port.__init__):
     16        (Port.layout_tests_dir):
     17
    1182015-03-09  Martin Robinson  <mrobinson@igalia.com>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r181093 r181280  
    209209            default=False,
    210210            help="Build java support files"),
     211        optparse.make_option("--layout-tests-directory", action="store", default=None,
     212            help="Override the default layout test directory.", dest="layout_tests_dir")
    211213    ]))
    212214
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r180681 r181280  
    138138        self._root_was_set = hasattr(options, 'root') and options.root
    139139        self._jhbuild_wrapper = []
     140        self._layout_tests_dir = hasattr(options, 'layout_tests_dir') and options.layout_tests_dir
    140141
    141142    def architecture(self):
     
    667668
    668669    def layout_tests_dir(self):
     670        if self._layout_tests_dir:
     671            return self._layout_tests_dir
    669672        return self._webkit_finder.layout_tests_dir()
    670673
Note: See TracChangeset for help on using the changeset viewer.