Changeset 57850 in webkit


Ignore:
Timestamp:
Apr 19, 2010 4:05:44 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-04-19 Dirk Pranke <dpranke@chromium.org>

Reviewed by Adam Barth.

From a patch by Tor Arne Vestbo <tor.arne.vestbo@nokia.com>

new-run-webkit-tests: make the retry step more explicit
https://bugs.webkit.org/show_bug.cgi?id=37606

It might be confusing to see the test and percent counters
reset without any notice of what's going on, so we make the
message that a retry-run is started explicit.

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57849 r57850  
     12010-04-19  Dirk Pranke <dpranke@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        From a patch by Tor Arne Vestbo  <tor.arne.vestbo@nokia.com>
     6
     7        new-run-webkit-tests: make the retry step more explicit
     8        https://bugs.webkit.org/show_bug.cgi?id=37606
     9
     10        It might be confusing to see the test and percent counters
     11        reset without any notice of what's going on, so we make the
     12        message that a retry-run is started explicit.
     13
     14        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     15
    1162010-04-19  Sam Weinig  <weinig@apple.com>
    217
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r57843 r57850  
    218218        self._current_progress_str = ""
    219219        self._current_test_number = 0
     220
     221        self._retries = 0
    220222
    221223    def __del__(self):
     
    654656        # we want to treat even a potentially flaky crash as an error.
    655657        failures = self._get_failures(result_summary, include_crashes=False)
    656         retries = 0
    657658        retry_summary = result_summary
    658         while (retries < self.NUM_RETRY_ON_UNEXPECTED_FAILURE and
     659        while (self._retries < self.NUM_RETRY_ON_UNEXPECTED_FAILURE and
    659660               len(failures)):
    660             _log.debug("Retrying %d unexpected failure(s)" % len(failures))
    661             retries += 1
     661            _log.info('')
     662            _log.info("Retrying %d unexpected failure(s)" % len(failures))
     663            _log.info('')
     664            self._retries += 1
    662665            retry_summary = ResultSummary(self._expectations, failures.keys())
    663666            self._run_tests(failures.keys(), retry_summary)
     
    740743        percent_complete = 100 * (result_summary.expected +
    741744            result_summary.unexpected) / result_summary.total
    742         self._meter.progress("Testing (%d%%): %d ran as expected, %d didn't,"
    743             " %d left" % (percent_complete, result_summary.expected,
     745        action = "Testing"
     746        if self._retries > 0:
     747            action = "Retrying"
     748        self._meter.progress("%s (%d%%): %d ran as expected, %d didn't,"
     749            " %d left" % (action, percent_complete, result_summary.expected,
    744750             result_summary.unexpected, result_summary.remaining))
    745751
Note: See TracChangeset for help on using the changeset viewer.