Changeset 130381 in webkit
- Timestamp:
- Oct 4, 2012, 3:18:54 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r130380 r130381 1 2012-10-04 Dirk Pranke <dpranke@chromium.org> 2 3 [NRWT] --skipped option is ignored when --test-list is used 4 https://bugs.webkit.org/show_bug.cgi?id=98260 5 6 Reviewed by Ojan Vafai. 7 8 Adds a --skipped=always flag that will skip any tests listed in 9 TestExpectations even if they're listed explicitly on the 10 command line. 11 12 This is most useful if you are using --test-list to specify a 13 long list of files but you still want to skip some of them 14 depending on what's in TestExpectations. 15 16 * Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py: 17 (LayoutTestFinder.skip_tests): 18 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 19 (parse_args): 20 * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: 21 (MainTest.test_skipped_flag): 22 1 23 2012-10-04 Sheriff Bot <webkit.review.bot@gmail.com> 2 24 -
trunk/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py
r125131 r130381 107 107 elif self._options.skipped == 'ignore': 108 108 tests_to_skip = set() 109 elif self._options.skipped == 'default': 110 pass # listed for completeness 111 112 # make sure we're explicitly running any tests passed on the command line. 113 tests_to_skip -= paths 109 elif self._options.skipped != 'always': 110 # make sure we're explicitly running any tests passed on the command line; equivalent to 'default'. 111 tests_to_skip -= paths 114 112 115 113 # unless of course we don't want to run the HTTP tests :) -
trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r129285 r130381 376 376 help="read list of tests to run from file", metavar="FILE"), 377 377 optparse.make_option("--skipped", action="store", default="default", 378 help="control how tests marked SKIP are run. 'default' == Skip, 'ignore' == Run them anyway, 'only' == only run the SKIP tests."), 378 help=("control how tests marked SKIP are run. " 379 "'default' == Skip tests unless explicitly listed on the command line, " 380 "'ignore' == Run them anyway, " 381 "'only' == only run the SKIP tests, " 382 "'always' == always skip, even if listed on the command line.")), 379 383 optparse.make_option("--force", dest="skipped", action="store_const", const='ignore', 380 384 help="Run all tests, even those marked SKIP in the test list (same as --skipped=ignore)"), -
trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py
r129932 r130381 419 419 ['passes/skipped/skip.html']) 420 420 421 # Now check that we don't run anything. 422 self.assertEquals(get_tests_run(['--skipped=always', 'passes/skipped/skip.html'], tests_included=True, flatten_batches=True), 423 []) 424 421 425 def test_iterations(self): 422 426 tests_to_run = ['passes/image.html', 'passes/text.html']
Note:
See TracChangeset
for help on using the changeset viewer.