diff options
author | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-05 02:01:53 +0000 |
---|---|---|
committer | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-05 02:01:53 +0000 |
commit | 2e91639e54a2e8103b0d3232599fb3df76db9326 (patch) | |
tree | 25ee27f91fc1a4cd4415f9c7205f3a34aaf71c93 | |
parent | 6ff9ff220450ee9e616f2ebf176c7689dec1b08d (diff) | |
download | chromium_src-2e91639e54a2e8103b0d3232599fb3df76db9326.zip chromium_src-2e91639e54a2e8103b0d3232599fb3df76db9326.tar.gz chromium_src-2e91639e54a2e8103b0d3232599fb3df76db9326.tar.bz2 |
Fix stats in json results - add back ALL_FIXABLE_COUNT as the number of
tests not marked WONTFIX or DEFER that we don't expect to PASS reliably
(this includes flaky tests and failures). Also fix the SKIP totals ...
BUG=none
TEST=none
R=ojan@chromium.org
Review URL: http://codereview.chromium.org/467024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33911 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/tools/layout_tests/layout_package/json_results_generator.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/webkit/tools/layout_tests/layout_package/json_results_generator.py b/webkit/tools/layout_tests/layout_package/json_results_generator.py index b2bf2ae5..987f6a2 100644 --- a/webkit/tools/layout_tests/layout_package/json_results_generator.py +++ b/webkit/tools/layout_tests/layout_package/json_results_generator.py @@ -42,6 +42,7 @@ class JSONResultsGenerator: WONTFIX = "wontfixCounts" DEFERRED = "deferredCounts" FIXABLE = "fixableCounts" + ALL_FIXABLE_COUNT = "allFixableCount" FIXABLE_COUNT = "fixableCount" # Note that we omit test_expectations.FAIL from this list because @@ -60,13 +61,14 @@ class JSONResultsGenerator: BUILDER_BASE_URL = "http://build.chromium.org/buildbot/layout_test_results/" RESULTS_FILENAME = "results.json" - def __init__(self, options, result_summary, individual_test_timings, - results_file_base_path, all_tests): + def __init__(self, options, expectations, result_summary, + individual_test_timings, results_file_base_path, all_tests): """Modifies the results.json file. Grabs it off the archive directory if it is not found locally. Args options: a dictionary of command line options + expectations: TestExpectations object with what we expected to get result_summary: ResultsSummary object containing failure counts for different groups of tests. individual_test_times: Map of test name to a tuple containing the @@ -84,6 +86,7 @@ class JSONResultsGenerator: self._all_tests = [self._GetPathRelativeToLayoutTestRoot(test) for test in all_tests] + self._expectations = expectations self._result_summary = result_summary self._test_timings = {} @@ -269,6 +272,9 @@ class JSONResultsGenerator: self._result_summary.tests_by_timeline[test_expectations.NOW]), self.FIXABLE_COUNT) self._InsertItemIntoRawList(results_for_builder, + len(self._expectations.GetTestsWithTimeline(test_expectations.NOW)), + self.ALL_FIXABLE_COUNT) + self._InsertItemIntoRawList(results_for_builder, self._GetFailureSummaryEntry(test_expectations.DEFER), self.DEFERRED) self._InsertItemIntoRawList(results_for_builder, @@ -291,7 +297,7 @@ class JSONResultsGenerator: timeline_tests = summary.tests_by_timeline[timeline] entry[self.SKIP_RESULT] = len( summary.tests_by_expectation[test_expectations.SKIP] & timeline_tests) - entry[self.SKIP_RESULT] = len( + entry[self.PASS_RESULT] = len( summary.tests_by_expectation[test_expectations.PASS] & timeline_tests) for failure_type in summary.tests_by_expectation.keys(): if failure_type not in self.FAILURE_TO_CHAR: |