Changeset 85927 in webkit


Ignore:
Timestamp:
May 6, 2011 12:33:46 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-05-06 Adam Barth <abarth@webkit.org>

Reviewed by Ojan Vafai.

Add an option to NRWT to skip failing tests
https://bugs.webkit.org/show_bug.cgi?id=60295

This option is similar to the way old-run-webkit-tests works. We're
planning to use this option on the testing EWS bots because they don't
use information from failing tests yet.

  • Scripts/webkitpy/layout_tests/layout_package/manager.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85925 r85927  
     12011-05-06  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        Add an option to NRWT to skip failing tests
     6        https://bugs.webkit.org/show_bug.cgi?id=60295
     7
     8        This option is similar to the way old-run-webkit-tests works.  We're
     9        planning to use this option on the testing EWS bots because they don't
     10        use information from failing tests yet.
     11
     12        * Scripts/webkitpy/layout_tests/layout_package/manager.py:
     13        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     14        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
     15
    1162011-05-04  Philippe Normand  <pnormand@igalia.com>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/manager.py

    r85875 r85927  
    359359                           test_expectations.SKIP)
    360360            self._test_files -= skipped
     361            if self._options.skip_failing_tests:
     362                failing = self._expectations.get_tests_with_result_type(
     363                               test_expectations.FAIL)
     364                self._test_files -= failing
    361365
    362366        # Create a sorted list of test files so the subset chunk,
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r85254 r85927  
    300300            default=False, help="Reset any existing baselines to the "
    301301                 "generated results"),
     302        optparse.make_option("--skip-failing-tests", action="store_true",
     303            default=False, help="Skip tests that are expected to fail. "
     304                 "Note: When using this option, you might miss new crashes "
     305                 "in these tests."),
    302306        optparse.make_option("--additional-drt-flag", action="append",
    303307            default=[], help="Additional command line flag to pass to DumpRenderTree "
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

    r85609 r85927  
    339339            self.assertEquals(len(batch), 1, '%s had too many tests' % ', '.join(batch))
    340340
     341    def test_skip_failing_tests(self):
     342        batches = get_tests_run(['--skip-failing-tests'])
     343        has_passes_text = False
     344        for batch in batches:
     345            self.assertFalse('failures/expected/text.html' in batch)
     346            has_passes_text = has_passes_text or ('passes/text.html' in batch)
     347        self.assertTrue(has_passes_text)
     348
    341349    def test_run_singly_actually_runs_tests(self):
    342350        res, _, _, _ = logging_run(['--run-singly', 'failures/unexpected'])
Note: See TracChangeset for help on using the changeset viewer.