Changeset 205480 in webkit


Ignore:
Timestamp:
Sep 6, 2016 9:01:54 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Using tests-options.json to compute whether tests are slow
https://bugs.webkit.org/show_bug.cgi?id=161626

Patch by Youenn Fablet <youenn@apple.com> on 2016-09-06
Reviewed by Darin Adler.

Tools:

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

(Manager.init): Loading tests-options.json
(Manager._test_is_slow): Computing timeout value based on tests-options.json.

LayoutTests:

  • TestExpectations: Removing slow WPT expectations now that they are handled through tests-options.json.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r205479 r205480  
     12016-09-06  Youenn Fablet  <youenn@apple.com>
     2
     3        Using tests-options.json to compute whether tests are slow
     4        https://bugs.webkit.org/show_bug.cgi?id=161626
     5
     6        Reviewed by Darin Adler.
     7
     8        * TestExpectations: Removing slow WPT expectations now that they are handled through tests-options.json.
     9
    1102016-09-06  Zalan Bujtas  <zalan@apple.com>
    211
  • trunk/LayoutTests/TestExpectations

    r205473 r205480  
    263263imported/w3c/web-platform-tests/html/browsers/windows/targeting-cross-origin-nested-browsing-contexts.sub.html [ Pass Failure ]
    264264
    265 # W3C XMLHttpRequest tests
    266 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html [ Slow ]
    267 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html [ Slow ]
    268 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html [ Slow ]
    269 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html [ Slow ]
    270 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html [ Slow ]
    271 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html [ Slow ]
    272 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html [ Slow ]
    273 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html [ Slow ]
    274 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html [ Slow ]
    275 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html [ Slow ]
    276 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html [ Slow ]
    277 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html [ Slow ]
    278 imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html [ Slow ]
    279265# XMLHttpRequest tests requiring DTR/WTR to allow other URLs than localhost to not be blocked and be reachable (www2.localhost)
    280266imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-bogus.htm [ Skip ]
  • trunk/Tools/ChangeLog

    r205478 r205480  
     12016-09-06  Youenn Fablet  <youenn@apple.com>
     2
     3        Using tests-options.json to compute whether tests are slow
     4        https://bugs.webkit.org/show_bug.cgi?id=161626
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/webkitpy/layout_tests/controllers/manager.py:
     9        (Manager.__init__): Loading tests-options.json
     10        (Manager._test_is_slow): Computing timeout value based on tests-options.json.
     11
    1122016-09-06  Commit Queue  <commit-queue@webkit.org>
    213
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

    r205080 r205480  
    8686        self._finder = LayoutTestFinder(self._port, self._options)
    8787        self._runner = LayoutTestRunner(self._options, self._port, self._printer, self._results_directory, self._test_is_slow)
     88        self._tests_options = json.loads(self._filesystem.read_text_file(self._port.path_from_webkit_base(self.LAYOUT_TESTS_DIRECTORY, "tests-options.json")))
    8889
    8990    def _collect_tests(self, args):
     
    132133
    133134    def _test_is_slow(self, test_file):
    134         return self._expectations.model().has_modifier(test_file, test_expectations.SLOW)
     135        if self._expectations.model().has_modifier(test_file, test_expectations.SLOW):
     136            return True
     137        return "slow" in self._tests_options.get(test_file, [])
    135138
    136139    def needs_servers(self, test_names):
Note: See TracChangeset for help on using the changeset viewer.