Changeset 161868 in webkit


Ignore:
Timestamp:
Jan 13, 2014 1:54:13 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Remove parsing of old-run-webkit-tests output from master.cfg
https://bugs.webkit.org/show_bug.cgi?id=126690

Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2014-01-13
Reviewed by Csaba Osztrogonác.

  • BuildSlaveSupport/build.webkit.org-config/master.cfg:

Removed parsing of ORWT output, as it is not used anymore.

  • BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:

Updated unit tests accordingly.

Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r161619 r161868  
    386386        return shell.Test.start(self)
    387387
    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.
    405389    nrwt_log_message_regexp = re.compile(r'\d{2}:\d{2}:\d{2}(\.\d+)?\s+\d+\s+(?P<message>.*)')
    406390
     
    411395        return line
    412396
    413     def _parseNewRunWebKitTestsOutput(self, logText):
     397    def _parseRunWebKitTestsOutput(self, logText):
    414398        incorrectLayoutLines = []
    415399        expressions = [
     
    443427
    444428        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)
    449430
    450431    def evaluateCommand(self, cmd):
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py

    r156771 r161868  
    6161            '1 unique leaks found!',
    6262        ]
    63         run_webkit_tests._parseNewRunWebKitTestsOutput(log_text)
     63        run_webkit_tests._parseRunWebKitTestsOutput(log_text)
    6464        self.assertEqual(run_webkit_tests.incorrectLayoutLines, expected_incorrect_lines)
    6565
     
    8484  svg/custom/zero-path-square-cap-rendering2.svg [ Failure ]
    8585"""
    86         run_webkit_tests._parseNewRunWebKitTestsOutput(log_text)
     86        run_webkit_tests._parseRunWebKitTestsOutput(log_text)
    8787        self.assertEqual(set(run_webkit_tests.incorrectLayoutLines),
    8888            set(['2 new passes', '3 flakes', '1 missing results', '1 failures']))
  • trunk/Tools/ChangeLog

    r161865 r161868  
     12014-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
    1132014-01-13  Commit Queue  <commit-queue@webkit.org>
    214
Note: See TracChangeset for help on using the changeset viewer.