Changeset 85460 in webkit
- Timestamp:
- May 1, 2011 11:18:46 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85459 r85460 1 2011-05-01 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 expectedfailures.py should report the unexpected failures when asked 6 https://bugs.webkit.org/show_bug.cgi?id=59916 7 8 This information is useful when the EWS runs tests. 9 10 * Scripts/webkitpy/tool/bot/expectedfailures.py: 11 * Scripts/webkitpy/tool/bot/expectedfailures_unittest.py: 12 1 13 2011-05-01 Adam Barth <abarth@webkit.org> 2 14 -
trunk/Tools/Scripts/webkitpy/tool/bot/expectedfailures.py
r83795 r85460 42 42 return set(results.failing_tests()) <= self._failures 43 43 44 def unexpected_failures(self, results): 45 if not self._can_trust_results(results): 46 return None 47 return set(results.failing_tests()) - self._failures 48 44 49 def shrink_expected_failures(self, results, run_success): 45 50 if run_success: -
trunk/Tools/Scripts/webkitpy/tool/bot/expectedfailures_unittest.py
r83795 r85460 72 72 failures.shrink_expected_failures(MockResults(), True) 73 73 self._assert_expected(failures, ['baz.html'], False) 74 75 def test_unexpected_failures(self): 76 failures = ExpectedFailures() 77 failures.grow_expected_failures(MockResults(['foo.html'])) 78 self.assertEquals(failures.unexpected_failures(MockResults(['foo.html', 'bar.html'])), set(['bar.html'])) 79 self.assertEquals(failures.unexpected_failures(MockResults(['baz.html'])), set(['baz.html']))
Note: See TracChangeset
for help on using the changeset viewer.