Changeset 71160 in webkit
- Timestamp:
- Nov 2, 2010 1:42:48 PM (13 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r71146 r71160 1 2010-11-02 Benjamin Kalman <kalman@google.com> 2 3 Reviewed by Ojan Vafai. 4 5 new-run-webkit-tests doesn't strip "LayoutTests/" from prefix, unlike old-run-webkit-tests 6 https://bugs.webkit.org/show_bug.cgi?id=48794 7 8 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: Strip the "LayoutTests/" prefix from test argument paths. 9 1 10 2010-11-02 Adam Roben <aroben@apple.com> 2 11 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r71083 r71160 86 86 BUILDER_BASE_URL = "http://build.chromium.org/buildbot/layout_test_results/" 87 87 88 LAYOUT_TESTS_DIRECTORY = "LayoutTests" + os.sep 89 88 90 TestExpectationsFile = test_expectations.TestExpectationsFile 89 91 … … 284 286 285 287 """ 286 paths = [ argfor arg in args if arg and arg != '']288 paths = [self._strip_test_dir_prefix(arg) for arg in args if arg and arg != ''] 287 289 paths += last_unexpected_results 288 290 if self._options.test_list: 289 291 paths += read_test_files(self._options.test_list) 290 292 self._test_files = self._port.tests(paths) 293 294 def _strip_test_dir_prefix(self, path): 295 if path.startswith(LAYOUT_TESTS_DIRECTORY): 296 return path[len(LAYOUT_TESTS_DIRECTORY):] 297 return path 291 298 292 299 def lint(self): … … 471 478 """Returns the highest-level directory by which to shard the given 472 479 test file.""" 473 index = test_file.rfind(os.sep + 'LayoutTests' + os.sep)474 475 test_file = test_file[index + len( 'LayoutTests/'):]480 index = test_file.rfind(os.sep + LAYOUT_TESTS_DIRECTORY) 481 482 test_file = test_file[index + len(LAYOUT_TESTS_DIRECTORY):] 476 483 test_file_parts = test_file.split(os.sep, 1) 477 484 directory = test_file_parts[0]
Note: See TracChangeset
for help on using the changeset viewer.