diff options
author | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 21:58:01 +0000 |
---|---|---|
committer | dpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 21:58:01 +0000 |
commit | a02a58382e0d0776379e8647e5bb821cc50ff15f (patch) | |
tree | 2a744865f8c7de7d040cab70a0480193dd2ae6c1 /webkit | |
parent | 9ee9a76a1e9bf4ea2088bbb2986f3cf9b0718a97 (diff) | |
download | chromium_src-a02a58382e0d0776379e8647e5bb821cc50ff15f.zip chromium_src-a02a58382e0d0776379e8647e5bb821cc50ff15f.tar.gz chromium_src-a02a58382e0d0776379e8647e5bb821cc50ff15f.tar.bz2 |
Modify test driver output so that we report IMAGE, TEXT, and IMAGE+TEXT
failures individually (rather than lumping them into the deprecated FAIL
bucket).
R=ojan@chromium.org
TEST=none
BUG=http://crbug.com/24223
Review URL: http://codereview.chromium.org/338057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/layout_tests/layout_package/compare_failures.py | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/webkit/tools/layout_tests/layout_package/compare_failures.py b/webkit/tools/layout_tests/layout_package/compare_failures.py index a9c71b9..85a5153 100644 --- a/webkit/tools/layout_tests/layout_package/compare_failures.py +++ b/webkit/tools/layout_tests/layout_package/compare_failures.py @@ -96,10 +96,18 @@ class CompareFailures: "Expected to timeout (deferred), but passed", output) # Print real regressions. - PrintFilesFromSet(self._regressed_failures, - "Regressions: Unexpected failures", + PrintFilesFromSet(self._regressed_text_failures, + "Regressions: Unexpected text failures", output, - 'FAIL') + 'TEXT') + PrintFilesFromSet(self._regressed_image_failures, + "Regressions: Unexpected image failures", + output, + 'IMAGE') + PrintFilesFromSet(self._regressed_image_plus_text_failures, + "Regressions: Unexpected image + text failures", + output, + 'IMAGE+TEXT') PrintFilesFromSet(self._regressed_hangs, "Regressions: Unexpected timeouts", output, @@ -120,7 +128,9 @@ class CompareFailures: crashes = set() hangs = set() missing = set() - failures = set() + image_failures = set() + text_failures = set() + image_plus_text_failures = set() for test, failure_type_instances in self._test_failures.iteritems(): # Although each test can have multiple test_failures, we only put them @@ -151,15 +161,15 @@ class CompareFailures: elif is_image_failure and is_text_failure: if (not test_expectations.FAIL in expectations and not test_expectations.IMAGE_PLUS_TEXT in expectations): - failures.add(test) + image_plus_text_failures.add(test) elif is_image_failure: if (not test_expectations.FAIL in expectations and not test_expectations.IMAGE in expectations): - failures.add(test) + image_failures.add(test) elif is_text_failure: if (not test_expectations.FAIL in expectations and not test_expectations.TEXT in expectations): - failures.add(test) + text_failures.add(test) elif is_failure: raise ValueError('unexpected failure type:' + f) worklist.remove(test) @@ -173,13 +183,16 @@ class CompareFailures: self._regressed_crashes = crashes self._regressed_hangs = hangs self._missing = missing - self._regressed_failures = failures + self._regressed_image_failures = image_failures + self._regressed_text_failures = text_failures + self._regressed_image_plus_text_failures = image_plus_text_failures def GetRegressions(self): """Returns a set of regressions from the test expectations. This is used to determine which tests to list in results.html and the right script exit code for the build bots. The list does not include the unexpected passes.""" - return (self._regressed_failures | self._regressed_hangs | + return (self._regressed_text_failures | self._regressed_image_failures | + self._regressed_image_plus_text_failures | self._regressed_hangs | self._regressed_crashes | self._missing) |