Changeset 92803 in webkit


Ignore:
Timestamp:
Aug 10, 2011, 5:00:39 PM (14 years ago)
Author:
eric@webkit.org
Message:

new-run-webkit-test's WinPort has no fallback logic
https://bugs.webkit.org/show_bug.cgi?id=64486

Unreviewed.

Turns out that we've long had a subtle bug whereby if you didn't
already have DumpRenderTree built, we might end up running unsupported tests
because the DumpRenderTree --print-supported-features check would silently fail.

When I moved the call from using popen to using Executive.run_command, this silent
failure became noisy. (Breaking some bots.)

This re-orders our steps so that we always build DRT before collecting expectations,
as well as adds a warning message when DumpRenderTree can't be found.

  • Scripts/webkitpy/layout_tests/port/webkit.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r92800 r92803  
     12011-08-10  Eric Seidel  <eric@webkit.org>
     2
     3        new-run-webkit-test's WinPort has no fallback logic
     4        https://bugs.webkit.org/show_bug.cgi?id=64486
     5
     6        Unreviewed.
     7
     8        Turns out that we've long had a subtle bug whereby if you didn't
     9        already have DumpRenderTree built, we might end up running unsupported tests
     10        because the DumpRenderTree --print-supported-features check would silently fail.
     11
     12        When I moved the call from using popen to using Executive.run_command, this silent
     13        failure became noisy.  (Breaking some bots.)
     14
     15        This re-orders our steps so that we always build DRT before collecting expectations,
     16        as well as adds a warning message when DumpRenderTree can't be found.
     17
     18        * Scripts/webkitpy/layout_tests/port/webkit.py:
     19        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     20
    1212011-08-10  Eric Seidel  <eric@webkit.org>
    222
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r92800 r92803  
    230230        this DRT switch, it has to override this method to return None"""
    231231        supported_features_command = [self._path_to_driver(), '--print-supported-features']
    232         output = self._executive.run_command(supported_features_command, error_handler=Executive.ignore_error)
     232        try:
     233            output = self._executive.run_command(supported_features_command, error_handler=Executive.ignore_error)
     234        except OSError, e:
     235            _log.warn("Exception runnig driver: %s, %s.  Driver must be built before calling WebKitPort.test_expectations()." % (supported_features_command, e))
     236            return []
     237
    233238        # Note: win/DumpRenderTree.cpp does not print a leading space before the features_string.
    234239        match_object = re.match("SupportedFeatures:\s*(?P<features_string>.*)\s*", output)
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r91432 r92803  
    9595            return manager.lint()
    9696
    97         printer.print_update("Parsing expectations ...")
    98         manager.parse_expectations()
    99 
    10097        printer.print_update("Checking build ...")
    10198        if not port.check_build(manager.needs_servers()):
    10299            _log.error("Build check failed")
    103100            return -1
     101
     102        printer.print_update("Parsing expectations ...")
     103        manager.parse_expectations()
    104104
    105105        result_summary = manager.set_up_run()
Note: See TracChangeset for help on using the changeset viewer.