Changeset 71160 in webkit


Ignore:
Timestamp:
Nov 2, 2010 1:42:48 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-02 Benjamin Kalman <kalman@google.com>

Reviewed by Ojan Vafai.

new-run-webkit-tests doesn't strip "LayoutTests/" from prefix, unlike old-run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=48794

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py: Strip the "LayoutTests/" prefix from test argument paths.
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r71146 r71160  
     12010-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
    1102010-11-02  Adam Roben  <aroben@apple.com>
    211
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r71083 r71160  
    8686BUILDER_BASE_URL = "http://build.chromium.org/buildbot/layout_test_results/"
    8787
     88LAYOUT_TESTS_DIRECTORY = "LayoutTests" + os.sep
     89
    8890TestExpectationsFile = test_expectations.TestExpectationsFile
    8991
     
    284286
    285287        """
    286         paths = [arg for arg in args if arg and arg != '']
     288        paths = [self._strip_test_dir_prefix(arg) for arg in args if arg and arg != '']
    287289        paths += last_unexpected_results
    288290        if self._options.test_list:
    289291            paths += read_test_files(self._options.test_list)
    290292        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
    291298
    292299    def lint(self):
     
    471478        """Returns the highest-level directory by which to shard the given
    472479        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):]
    476483        test_file_parts = test_file.split(os.sep, 1)
    477484        directory = test_file_parts[0]
Note: See TracChangeset for help on using the changeset viewer.