Changeset 87378 in webkit


Ignore:
Timestamp:
May 26, 2011 5:48:19 AM (13 years ago)
Author:
Adam Roben
Message:

Correctly detect cases where only a single test failed/crashed/timed out

Fixes <http://webkit.org/b/61463> TestFailures page doesn't show testers with only a single
failing test

Reviewed by Darin Adler.

  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js:

(Builder.prototype.getNumberOfFailingTests): Don't require "test cases" to be plural. It
will be singular when only a single test fails/crashes/times out.

  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js:

(ViewController.prototype._displayTesters): Only pluralize "test" when more than one test
failed/crashed/timed out.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js

    r87299 r87378  
    126126
    127127            var failureCount = layoutTestStep.results[1].reduce(function(sum, outputLine) {
    128                 var match = /^(\d+) test cases/.exec(outputLine);
     128                var match = /^(\d+) test case/.exec(outputLine);
    129129                if (!match)
    130130                    return sum;
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js

    r87299 r87378  
    105105                    item.appendChild(document.createTextNode(' (too many failures/crashes/timeouts)'));
    106106                else
    107                     item.appendChild(document.createTextNode(' (' + buildInfo.failureCount + ' failing tests)'));
     107                    item.appendChild(document.createTextNode(' (' + buildInfo.failureCount + ' failing test' + (buildInfo.failureCount > 1 ? 's' : '') + ')'));
    108108                list.appendChild(item);
    109109            });
  • trunk/Tools/ChangeLog

    r87367 r87378  
     12011-05-25  Adam Roben  <aroben@apple.com>
     2
     3        Correctly detect cases where only a single test failed/crashed/timed out
     4
     5        Fixes <http://webkit.org/b/61463> TestFailures page doesn't show testers with only a single
     6        failing test
     7
     8        Reviewed by Darin Adler.
     9
     10        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/Builder.js:
     11        (Builder.prototype.getNumberOfFailingTests): Don't require "test cases" to be plural. It
     12        will be singular when only a single test fails/crashes/times out.
     13
     14        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js:
     15        (ViewController.prototype._displayTesters): Only pluralize "test" when more than one test
     16        failed/crashed/timed out.
     17
    1182011-05-26  Tom Hudson  <tomhudson@google.com>
    219
Note: See TracChangeset for help on using the changeset viewer.