Changeset 161868 in webkit
- Timestamp:
- Jan 13, 2014 1:54:13 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
r161619 r161868 386 386 return shell.Test.start(self) 387 387 388 def _parseOldRunWebKitTestsOutput(self, logText): 389 incorrectLayoutLines = [] 390 for line in logText.splitlines(): 391 if line.find('had incorrect layout') >= 0 or line.find('were new') >= 0 or line.find('was new') >= 0: 392 incorrectLayoutLines.append(line) 393 elif line.find('test case') >= 0 and (line.find(' crashed') >= 0 or line.find(' timed out') >= 0): 394 incorrectLayoutLines.append(line) 395 elif line.startswith("WARNING:") and line.find(' leak') >= 0: 396 incorrectLayoutLines.append(line.replace('WARNING: ', '')) 397 elif line.find('Exiting early') >= 0: 398 incorrectLayoutLines.append(line) 399 400 # FIXME: Detect and summarize leaks of RefCounted objects 401 402 self.incorrectLayoutLines = incorrectLayoutLines 403 404 # FIXME: This will break if new-run-webkit-tests changes its default log formatter. 388 # FIXME: This will break if run-webkit-tests changes its default log formatter. 405 389 nrwt_log_message_regexp = re.compile(r'\d{2}:\d{2}:\d{2}(\.\d+)?\s+\d+\s+(?P<message>.*)') 406 390 … … 411 395 return line 412 396 413 def _parse NewRunWebKitTestsOutput(self, logText):397 def _parseRunWebKitTestsOutput(self, logText): 414 398 incorrectLayoutLines = [] 415 399 expressions = [ … … 443 427 444 428 logText = cmd.logs['stdio'].getText() 445 if logText.find("Collecting tests ...") >= 0: 446 self._parseNewRunWebKitTestsOutput(logText) 447 else: 448 self._parseOldRunWebKitTestsOutput(logText) 429 self._parseRunWebKitTestsOutput(logText) 449 430 450 431 def evaluateCommand(self, cmd): -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py
r156771 r161868 61 61 '1 unique leaks found!', 62 62 ] 63 run_webkit_tests._parse NewRunWebKitTestsOutput(log_text)63 run_webkit_tests._parseRunWebKitTestsOutput(log_text) 64 64 self.assertEqual(run_webkit_tests.incorrectLayoutLines, expected_incorrect_lines) 65 65 … … 84 84 svg/custom/zero-path-square-cap-rendering2.svg [ Failure ] 85 85 """ 86 run_webkit_tests._parse NewRunWebKitTestsOutput(log_text)86 run_webkit_tests._parseRunWebKitTestsOutput(log_text) 87 87 self.assertEqual(set(run_webkit_tests.incorrectLayoutLines), 88 88 set(['2 new passes', '3 flakes', '1 missing results', '1 failures'])) -
trunk/Tools/ChangeLog
r161865 r161868 1 2014-01-13 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 3 Remove parsing of old-run-webkit-tests output from master.cfg 4 https://bugs.webkit.org/show_bug.cgi?id=126690 5 6 Reviewed by Csaba Osztrogonác. 7 8 * BuildSlaveSupport/build.webkit.org-config/master.cfg: 9 Removed parsing of ORWT output, as it is not used anymore. 10 * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: 11 Updated unit tests accordingly. 12 1 13 2014-01-13 Commit Queue <commit-queue@webkit.org> 2 14
Note: See TracChangeset
for help on using the changeset viewer.