Changeset 150850 in webkit


Ignore:
Timestamp:
May 28, 2013 3:59:03 PM (11 years ago)
Author:
Brent Fulgham
Message:

[Windows] NRWT reports failure for 'mac' test cases.
https://bugs.webkit.org/show_bug.cgi?id=116698

Reviewed by Ryosuke Niwa.

The Windows port falls back to the Mac port for many test results,
and so adds the mac and mac-wk2 to its set of fallbacks.
Unfortunately, NRWT thinks that this means that tests in these
folders should be executed, resulting in many failures on
Windows.

This change overloads the '_tests_for_other_platforms' method
to return a subset of the result fallback list so that we do
not attempt to execute Mac tests on Windows.

  • Scripts/webkitpy/port/base.py:

(Port.test_search_path): Added. Defaults to just calling the
baseline_search_path method, which is how most ports behave.
(Port._test_for_other_platforms): Modified to call the new
test_search_path method.

  • Scripts/webkitpy/port/win.py:

(WinPort.test_search_path): Added custom overload. Strips
out mac-specific test paths.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r150806 r150850  
     12013-05-28  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Windows] NRWT reports failure for 'mac' test cases.
     4        https://bugs.webkit.org/show_bug.cgi?id=116698
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        The Windows port falls back to the Mac port for many test results,
     9        and so adds the mac and mac-wk2 to its set of fallbacks.
     10        Unfortunately, NRWT thinks that this means that tests in these
     11        folders should be executed, resulting in many failures on
     12        Windows.
     13
     14        This change overloads the '_tests_for_other_platforms' method
     15        to return a subset of the result fallback list so that we do
     16        not attempt to execute Mac tests on Windows.
     17
     18        * Scripts/webkitpy/port/base.py:
     19        (Port.test_search_path): Added. Defaults to just calling the
     20        baseline_search_path method, which is how most ports behave.
     21        (Port._test_for_other_platforms): Modified to call the new
     22        test_search_path method.
     23
     24        * Scripts/webkitpy/port/win.py:
     25        (WinPort.test_search_path): Added custom overload. Strips
     26        out mac-specific test paths.
     27
    1282013-05-28  Martin Robinson  <mrobinson@igalia.com>
    229
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r150800 r150850  
    14561456        return []
    14571457
     1458    def test_search_path(self):
     1459        return self.baseline_search_path()
     1460
    14581461    def _tests_for_other_platforms(self):
    14591462        # By default we will skip any directory under LayoutTests/platform
     
    14641467        dirs_to_skip = []
    14651468        for entry in entries:
    1466             if self._filesystem.isdir(entry) and entry not in self.baseline_search_path():
     1469            if self._filesystem.isdir(entry) and entry not in self.test_search_path():
    14671470                basename = self._filesystem.basename(entry)
    14681471                dirs_to_skip.append('platform/%s' % basename)
  • trunk/Tools/Scripts/webkitpy/port/win.py

    r150670 r150850  
    119119    def _driver_tempdir_for_environment(self):
    120120        return cygpath(self._driver_tempdir())
     121
     122    def test_search_path(self):
     123        test_fallback_names = [path for path in self.baseline_search_path() if not path.startswith(self._webkit_baseline_path('mac'))]
     124        return map(self._webkit_baseline_path, test_fallback_names)
Note: See TracChangeset for help on using the changeset viewer.