Changeset 94868 in webkit


Ignore:
Timestamp:
Sep 9, 2011 11:21:54 AM (13 years ago)
Author:
rniwa@webkit.org
Message:

Buildbot may use RunWebKitTest's evaluateCommand on bots that run nrwt
https://bugs.webkit.org/show_bug.cgi?id=67855

Reviewed by Dirk Pranke.

The bug was caused by the fact some ports use RunWebKitTests instead of NewRunWebKitTests to run tests,
and using RunWebKitTests.evaluateCommand after calling _parseNewRunWebKitTestsOutput.

Fixed the bug by merging evaluateCommand of RunWebKitTests and NewRunWebKitTests.

  • BuildSlaveSupport/build.webkit.org-config/master.cfg:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg

    r93942 r94868  
    316316
    317317    def evaluateCommand(self, cmd):
     318        result = SUCCESS
     319
    318320        if self.incorrectLayoutLines:
    319321            if len(self.incorrectLayoutLines) == 1:
     
    322324                    return WARNINGS
    323325
    324             return FAILURE
     326            for line in self.incorrectLayoutLines:
     327                if line.find('flakes') >= 0 or line.find('new passes') >= 0 or line.find('missing results') >= 0:
     328                    result = WARNINGS
     329                else:
     330                    return FAILURE
    325331
    326332        if cmd.rc != 0:
    327333            return FAILURE
    328334
    329         return SUCCESS
     335        return result
    330336
    331337    def getText(self, cmd, results):
     
    354360        logText = cmd.logs['stdio'].getText()
    355361        self._parseNewRunWebKitTestsOutput(logText)
    356 
    357     def evaluateCommand(self, cmd):
    358         if cmd.rc != 0:
    359             return FAILURE
    360 
    361         result = SUCCESS
    362         if self.incorrectLayoutLines:
    363             for line in self.incorrectLayoutLines:
    364                 if line.find('flakes') >= 0 or line.find('new passes') >= 0 or line.find('missing results') >= 0:
    365                     result = WARNINGS
    366                 else:
    367                     return FAILURE
    368 
    369         return result
    370362
    371363class RunUnitTests(shell.Test):
  • trunk/Tools/ChangeLog

    r94867 r94868  
     12011-09-09  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Buildbot may use RunWebKitTest's evaluateCommand on bots that run nrwt
     4        https://bugs.webkit.org/show_bug.cgi?id=67855
     5
     6        Reviewed by Dirk Pranke.
     7
     8        The bug was caused by the fact some ports use RunWebKitTests instead of NewRunWebKitTests to run tests,
     9        and using RunWebKitTests.evaluateCommand after calling _parseNewRunWebKitTestsOutput.
     10
     11        Fixed the bug by merging evaluateCommand of RunWebKitTests and NewRunWebKitTests.
     12
     13        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     14
    1152011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.