⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259446 in webkit


Ignore:
Timestamp:
Apr 3, 2020, 12:08:42 AM (6 years ago)
Author:
Antti Koivisto
Message:

[Windows] Ignore render tree dump based results on Windows
https://bugs.webkit.org/show_bug.cgi?id=209897

Reviewed by Darin Adler.

Render tree dumps are port specific and so difficult to maintain. They are mostly very old and
have been superseded by more modern ref and text dump tests. They rarely reveal any port specific bugs.

This patch adds --ignore-render-tree-dump-results option to run-webkit-tests and enables it by
default on Apple Windows port.

With the option set the render tree dump tests are still run (so crashes are detected) but their
output is treated as if it always passed. Missing results are not written to disk.

  • Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:

(SingleTestRunner._compare_text):

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:

(parse_args):
(_set_up_derived_options):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r259442 r259446  
     12020-04-03  Antti Koivisto  <antti@apple.com>
     2
     3        [Windows] Ignore render tree dump based results on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=209897
     5
     6        Reviewed by Darin Adler.
     7
     8        Render tree dumps are port specific and so difficult to maintain. They are mostly very old and
     9        have been superseded by more modern ref and text dump tests. They rarely reveal any port specific bugs.
     10
     11        This patch adds --ignore-render-tree-dump-results option to run-webkit-tests and enables it by
     12        default on Apple Windows port.
     13
     14        With the option set the render tree dump tests are still run (so crashes are detected) but their
     15        output is treated as if it always passed. Missing results are not written to disk.
     16
     17        * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:
     18        (SingleTestRunner._compare_text):
     19        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     20        (parse_args):
     21        (_set_up_derived_options):
     22
    1232020-04-02  James Savage  <james.savage@apple.com>
    224
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py

    r254340 r259446  
    236236    def _compare_text(self, expected_text, actual_text):
    237237        failures = []
     238        if self._options.ignore_render_tree_dump_results and self._render_tree_dump_pattern.match(actual_text):
     239            return failures
    238240        if (expected_text and actual_text and
    239241            # Assuming expected_text is already normalized.
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r258350 r259446  
    150150        optparse.make_option("--no-ref-tests", action="store_true",
    151151            dest="no_ref_tests", help="Skip all ref tests"),
     152        optparse.make_option("--ignore-render-tree-dump-results", action="store_true",
     153            dest="ignore_render_tree_dump_results",
     154            help="Don't compare or save results for render tree dump tests (they still run and crashes are reported)"),
    152155        optparse.make_option("--tolerance",
    153156            help="Ignore image differences less than this percentage (some "
     
    470473        options.webkit_test_runner = True
    471474
     475    # Don't maintain render tree dump results for Apple Windows port.
     476    if port.port_name == "win":
     477        options.ignore_render_tree_dump_results = True
     478
    472479    if options.leaks:
    473480        options.additional_env_var.append("JSC_usePoisoning=0")
Note: See TracChangeset for help on using the changeset viewer.