Changeset 269959 in webkit


Ignore:
Timestamp:
Nov 18, 2020 8:13:21 AM (3 years ago)
Author:
aakash_jain@apple.com
Message:

[build.webkit.org] Update RunPerlTests step for new buildbot
https://bugs.webkit.org/show_bug.cgi?id=219083

Reviewed by Jonathan Bedard.

  • CISupport/build-webkit-org/steps.py:

(RunPerlTests):
(RunPerlTests.start): Initialized log observer.
(RunPerlTests.parseOutputLine): Parse each log line as they come.
(RunPerlTests.countFailures): Updated to return failedTestCount.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/build-webkit-org/steps.py

    r269958 r269959  
    821821    command = ["perl", "./Tools/Scripts/test-webkitperl"]
    822822    failedTestsFormatString = "%d perl test%s failed"
     823    test_summary_re = re.compile(r'^Failed \d+/\d+ test programs\. (?P<count>\d+)/\d+ subtests failed\.')  # e.g.: Failed 2/19 test programs. 5/363 subtests failed.
     824
     825    def start(self):
     826        if USE_BUILDBOT_VERSION2:
     827            self.log_observer = ParseByLineLogObserver(self.parseOutputLine)
     828            self.addLogObserver('stdio', self.log_observer)
     829            self.failedTestCount = 0
     830        return shell.Test.start(self)
     831
     832    def parseOutputLine(self, line):
     833        match = self.test_summary_re.match(line)
     834        if match:
     835            self.failedTestCount = int(match.group('count'))
    823836
    824837    def countFailures(self, cmd):
     838        if USE_BUILDBOT_VERSION2:
     839            return self.failedTestCount
     840
    825841        logText = cmd.logs['stdio'].getText()
    826842        # We're looking for the line that looks like this: Failed 2/19 test programs. 5/363 subtests failed.
  • trunk/Tools/ChangeLog

    r269958 r269959  
     12020-11-18  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [build.webkit.org] Update RunPerlTests step for new buildbot
     4        https://bugs.webkit.org/show_bug.cgi?id=219083
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * CISupport/build-webkit-org/steps.py:
     9        (RunPerlTests):
     10        (RunPerlTests.start): Initialized log observer.
     11        (RunPerlTests.parseOutputLine): Parse each log line as they come.
     12        (RunPerlTests.countFailures): Updated to return failedTestCount.
     13
    1142020-11-18  Aakash Jain  <aakash_jain@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.