Changeset 91448 in webkit
- Timestamp:
- Jul 20, 2011 11:53:59 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
r91413 r91448 234 234 def _parseNewRunWebKitTestsOutput(self, logText): 235 235 incorrectLayoutLines = [] 236 expressions = {237 'failures': re.compile(r'Regressions: Unexpected.+:?\s*\((\d+)\)'),238 'flakes': re.compile(r'Unexpected flakiness.+:?\s*\((\d+)\)'),239 'new passes': re.compile(r'Expected to .+, but passed:\s+\((\d+)\)'),240 'missing results': re.compile(r'no expected results found\s*:\s+\((\d+)\)'),241 }236 expressions = [ 237 ('flakes', re.compile(r'Unexpected flakiness.+:?\s*\((\d+)\)')), 238 ('new passes', re.compile(r'Expected to .+, but passed:\s+\((\d+)\)')), 239 ('missing results', re.compile(r'no expected results found\s*:\s+\((\d+)\)')), 240 ('failures', re.compile(r'Regressions: Unexpected.+:?\s*\((\d+)\)')), 241 ] 242 242 testFailures = {} 243 243 244 244 for line in logText.splitlines(): 245 if line.find('Exiting early') >= 0 :245 if line.find('Exiting early') >= 0 or line.find('leaks found') >= 0: 246 246 incorrectLayoutLines.append(line) 247 247 continue 248 if line find('leaks found') >= 0: 249 incorrectLayoutLines.append(line) 250 continue 251 for name in expressions: 252 match = expressions[name].search(line) 248 for name, expression in expressions: 249 match = expression.search(line) 250 253 251 if match: 254 252 testFailures[name] = testFailures.get(name, 0) + int(match.group(1)) 253 break 255 254 256 255 # FIXME: Parse file names and put them in results -
trunk/Tools/ChangeLog
r91434 r91448 1 2011-07-20 Ryosuke Niwa <rniwa@webkit.org> 2 3 Buildbot marks a nrwt bot red when tests are missing results 4 https://bugs.webkit.org/show_bug.cgi?id=64812 5 6 Reviewed by Adam Barth. 7 8 The bug was caused by multiple expressions matching on the single output. 9 Fixed it by exiting the loop as soon as one expression matches. 10 11 Because the regular expression for 'failures' is most general, 12 moved it to the end of the list to avoid it catching other cases. 13 14 * BuildSlaveSupport/build.webkit.org-config/master.cfg: 15 1 16 2011-07-20 Chang Shu <cshu@webkit.org> 2 17
Note: See TracChangeset
for help on using the changeset viewer.