Changeset 85460 in webkit


Ignore:
Timestamp:
May 1, 2011 11:18:46 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-05-01 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

expectedfailures.py should report the unexpected failures when asked
https://bugs.webkit.org/show_bug.cgi?id=59916

This information is useful when the EWS runs tests.

  • Scripts/webkitpy/tool/bot/expectedfailures.py:
  • Scripts/webkitpy/tool/bot/expectedfailures_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85459 r85460  
     12011-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
    1132011-05-01  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Tools/Scripts/webkitpy/tool/bot/expectedfailures.py

    r83795 r85460  
    4242        return set(results.failing_tests()) <= self._failures
    4343
     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
    4449    def shrink_expected_failures(self, results, run_success):
    4550        if run_success:
  • trunk/Tools/Scripts/webkitpy/tool/bot/expectedfailures_unittest.py

    r83795 r85460  
    7272        failures.shrink_expected_failures(MockResults(), True)
    7373        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.