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) |