Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: webkit/tools/layout_tests/run_webkit_tests.py

Issue 115302: Allow layout tests to be located both in src/webkit/data/layout_tests and thi... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Moar fixez Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/layout_tests/layout_package/test_expectations.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/run_webkit_tests.py
===================================================================
--- webkit/tools/layout_tests/run_webkit_tests.py (revision 15966)
+++ webkit/tools/layout_tests/run_webkit_tests.py (working copy)
@@ -146,9 +146,12 @@
directory. glob patterns are ok.
"""
paths_to_walk = set()
+ # if paths is empty, provide a pre-defined list.
+ if not paths:
+ paths = _shardable_directories
for path in paths:
# If there's an * in the name, assume it's a glob pattern.
- path = os.path.join(path_utils.LayoutDataDir(), path)
+ path = os.path.join(path_utils.LayoutTestsDir(path), path)
if path.find('*') > -1:
filenames = glob.glob(path)
paths_to_walk.update(filenames)
@@ -976,8 +979,6 @@
paths = []
if options.test_list:
paths += ReadTestFiles(options.test_list)
- if not paths:
- paths = ['.']
test_runner = TestRunner(options, paths, platform_new_results_dir)
« no previous file with comments | « webkit/tools/layout_tests/layout_package/test_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698