Bug 142418

Summary: Add an option to run-webkit-tests to override the LayoutTests/ directory
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, ddkilzer, eric.carlson, glenn, jonlee
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ddkilzer: review+

Description Jer Noble 2015-03-06 16:26:43 PST
Add an option to run-webkit-tests to override the LayoutTests/ directory
Comment 1 Jer Noble 2015-03-06 16:30:14 PST
Created attachment 248111 [details]
Patch
Comment 2 WebKit Commit Bot 2015-03-06 16:32:42 PST
Attachment 248111 [details] did not pass style-queue:


ERROR: Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:212:  whitespace before ']'  [pep8/E202] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 David Kilzer (:ddkilzer) 2015-03-09 13:39:04 PDT
Comment on attachment 248111 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=248111&action=review

r=me if you shorten the switch name to just "Tools/Scripts/webkitpy/port/base_unittest.py".

> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:212
> +        optparse.make_option("--override-layout-tests-directory", action="store", default=None,
> +            help="Override the default layout test directory.", dest="layout_tests_dir")

Let's remove "override-" from "--layout-tests-directory".  You're implicitly overriding it by specifying a different directory, so no need for extra typing.
Comment 4 Jer Noble 2015-03-09 13:52:22 PDT
Committed r181280: <http://trac.webkit.org/changeset/181280>