Changeset 249104 in webkit


Ignore:
Timestamp:
Aug 26, 2019 10:48:11 AM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[EWS] Do not append additional '(failure)' string at the end of custom failure message in EWS Buildbot
https://bugs.webkit.org/show_bug.cgi?id=201140

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(TestWithFailureCount.getResultSummary): Do not append (failure) when in case of custom status.

  • BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests accordingly.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-build/steps.py

    r249100 r249104  
    501501        status = self.name
    502502
    503         if self.results != SUCCESS and self.failedTestCount:
    504             status = self.failedTestsFormatString % (self.failedTestCount, self.failedTestPluralSuffix)
    505 
    506503        if self.results != SUCCESS:
    507             status += u' ({})'.format(Results[self.results])
    508 
    509         return {u'step': status}
     504            if self.failedTestCount:
     505                status = self.failedTestsFormatString % (self.failedTestCount, self.failedTestPluralSuffix)
     506            else:
     507                status += u' ({})'.format(Results[self.results])
     508
     509        return {u'step': unicode(status)}
    510510
    511511
  • trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py

    r249100 r249104  
    259259            + 2,
    260260        )
    261         self.expectOutcome(result=FAILURE, state_string='8 style errors (failure)')
     261        self.expectOutcome(result=FAILURE, state_string='8 style errors')
    262262        return self.runStep()
    263263
     
    18671867            + 1,
    18681868        )
    1869         self.expectOutcome(result=FAILURE, state_string='1 api test failed or timed out (failure)')
     1869        self.expectOutcome(result=FAILURE, state_string='1 api test failed or timed out')
    18701870        return self.runStep()
    18711871
     
    19231923            + 4,
    19241924        )
    1925         self.expectOutcome(result=FAILURE, state_string='4 api tests failed or timed out (failure)')
     1925        self.expectOutcome(result=FAILURE, state_string='4 api tests failed or timed out')
    19261926        return self.runStep()
    19271927
  • trunk/Tools/ChangeLog

    r249102 r249104  
     12019-08-26  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [EWS] Do not append additional '(failure)' string at the end of custom failure message in EWS Buildbot
     4        https://bugs.webkit.org/show_bug.cgi?id=201140
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (TestWithFailureCount.getResultSummary): Do not append (failure) when in case of custom status.
     10        * BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests accordingly.
     11
    1122019-08-26  Jonathan Bedard  <jbedard@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.