Changeset 123776 in webkit


Ignore:
Timestamp:
Jul 26, 2012, 11:26:41 AM (13 years ago)
Author:
kbalazs@webkit.org
Message:

[nrwt] get rid of --skip-pixel-test-if-no-baseline
https://bugs.webkit.org/show_bug.cgi?id=92377

Reviewed by Adam Barth.

Remove the option and all code paths that handled it.

  • Scripts/webkitpy/layout_tests/port/base.py:

(Port.should_run_as_pixel_test):

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:

(_set_up_derived_options):
(parse_args):

  • Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:

(MainTest.test_repeat_each):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r123773 r123776  
     12012-07-26  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        [nrwt] get rid of --skip-pixel-test-if-no-baseline
     4        https://bugs.webkit.org/show_bug.cgi?id=92377
     5
     6        Reviewed by Adam Barth.
     7
     8        Remove the option and all code paths that handled it.
     9
     10        * Scripts/webkitpy/layout_tests/port/base.py:
     11        (Port.should_run_as_pixel_test):
     12        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     13        (_set_up_derived_options):
     14        (parse_args):
     15        * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
     16        (MainTest.test_repeat_each):
     17
    1182012-07-26  Olivier Blin  <olivier.blin@softathome.com>
    219
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r123729 r123776  
    12721272            # Cannot do more filtering without this.
    12731273            return True
    1274         if self._options.skip_pixel_test_if_no_baseline and not self.expected_image(test_input.test_name):
    1275             return False
    12761274        if self._options.pixel_test_directories:
    12771275            return any(test_input.test_name.startswith(directory) for directory in self._options.pixel_test_directories)
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r123729 r123776  
    175175        warnings.append("--force/--skipped=%s overrides --no-http." % (options.skipped))
    176176        options.http = True
    177 
    178     if options.skip_pixel_test_if_no_baseline and not options.pixel_tests:
    179         warnings.append("--skip-pixel-test-if-no-baseline is only supported with -p (--pixel-tests)")
    180177
    181178    if options.ignore_metrics and (options.new_baseline or options.reset_results):
     
    326323            dest="new_test_results", default=True,
    327324            help="Don't create new baselines when no expected results exist"),
    328         optparse.make_option("--skip-pixel-test-if-no-baseline", action="store_true",
    329             dest="skip_pixel_test_if_no_baseline", help="Do not generate and check pixel result in the case when "
    330                  "no image baseline is available for the test."),
    331325
    332326        #FIXME: we should support a comma separated list with --pixel-test-directory as well.
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py

    r123729 r123776  
    405405        self.assertEquals(tests_run, ['passes/image.html', 'passes/image.html', 'passes/text.html', 'passes/text.html'])
    406406
    407     def test_skip_pixel_test_if_no_baseline_option(self):
    408         tests_to_run = ['passes/image.html', 'passes/text.html']
    409         tests_run = get_tests_run(['--skip-pixel-test-if-no-baseline'] + tests_to_run, tests_included=True, flatten_batches=True)
    410         self.assertEquals(tests_run, ['passes/image.html', 'passes/text.html'])
    411 
    412407    def test_ignore_flag(self):
    413408        # Note that passes/image.html is expected to be run since we specified it directly.
Note: See TracChangeset for help on using the changeset viewer.