Changeset 56648 in webkit


Ignore:
Timestamp:
Mar 26, 2010 5:15:21 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-03-25 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

Add a test_expectations.txt file for the mac platform so
new-run-webkit-tests can track IMAGE failures.

https://bugs.webkit.org/show_bug.cgi?id=36619

  • platform/mac/test_expectations.txt: Added.

2010-03-26 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

Change the Mac port of new-run-webkit-tests to look for a
test_expectations.txt file in addition to the Skipped files, so we
can track pixel failures.

https://bugs.webkit.org/show_bug.cgi?id=36619

  • Scripts/webkitpy/layout_tests/port/mac.py:
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56646 r56648  
     12010-03-25  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add a test_expectations.txt file for the mac platform so
     6        new-run-webkit-tests can track IMAGE failures.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=36619
     9
     10        * platform/mac/test_expectations.txt: Added.
     11
    1122010-03-26  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/WebKitTools/ChangeLog

    r56647 r56648  
     12010-03-26  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Change the Mac port of new-run-webkit-tests to look for a
     6        test_expectations.txt file in addition to the Skipped files, so we
     7        can track pixel failures.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=36619
     10
     11        * Scripts/webkitpy/layout_tests/port/mac.py:
     12
    1132010-03-26  Dirk Pranke  <dpranke@chromium.org>
    214
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py

    r56647 r56648  
    158158        return int(os.popen2("sysctl -n hw.ncpu")[1].read())
    159159
     160    def path_to_test_expectations_file(self):
     161        return self.path_from_webkit_base('LayoutTests', 'platform',
     162           'mac', 'test_expectations.txt')
     163
    160164    def results_directory(self):
    161165        return ('/tmp/run-chromium-webkit-tests-' +
     
    240244
    241245    def test_expectations(self):
    242         # The WebKit mac port uses 'Skipped' files at the moment. Each
    243         # file contains a list of files or directories to be skipped during
    244         # the test run. The total list of tests to skipped is given by the
    245         # contents of the generic Skipped file found in platform/X plus
    246         # a version-specific file found in platform/X-version. Duplicate
    247         # entries are allowed. This routine reads those files and turns
    248         # contents into the format expected by test_expectations.
    249         tests_to_skip = set(self._expectations_from_skipped_files()) # Use a set to allow duplicates
     246        # The WebKit mac port uses a combination of a test_expectations file
     247        # and 'Skipped' files.
     248        expectations_file = self.path_to_test_expectations_file()
     249        expectations = file(expectations_file, "r").read()
     250        return expectations + self._skips()
     251
     252    def _skips(self):
     253        # Each Skipped file contains a list of files
     254        # or directories to be skipped during the test run. The total list
     255        # of tests to skipped is given by the contents of the generic
     256        # Skipped file found in platform/X plus a version-specific file
     257        # found in platform/X-version. Duplicate entries are allowed.
     258        # This routine reads those files and turns contents into the
     259        # format expected by test_expectations.
     260
     261        # Use a set to allow duplicates
     262        tests_to_skip = set(self._expectations_from_skipped_files())
     263
    250264        tests_to_skip.update(self._tests_for_other_platforms())
    251265        tests_to_skip.update(self._tests_for_disabled_features())
    252         expectations = map(lambda test_path: "BUG_SKIPPED SKIP : %s = FAIL" % test_path, tests_to_skip)
    253         return "\n".join(expectations)
     266        skip_lines = map(lambda test_path: "BUG_SKIPPED SKIP : %s = FAIL" %
     267                                test_path, tests_to_skip)
     268        return "\n".join(skip_lines)
    254269
    255270    def test_platform_name(self):
    256         # At the moment we don't use test platform names, but we have
    257         # to return something.
    258         return 'mac'
     271        return 'mac' + self.version()
    259272
    260273    def test_platform_names(self):
    261         # At the moment we don't use test platform names, but we have
    262         # to return something.
    263         return ('mac',)
     274        return ('mac', 'mac-tiger', 'mac-leopard', 'mac-snowleopard')
    264275
    265276    def version(self):
Note: See TracChangeset for help on using the changeset viewer.