Changeset 269958 in webkit


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

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

Reviewed by Jonathan Bedard.

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

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

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r269904 r269958  
    735735
    736736class RunPythonTests(TestWithFailureCount):
    737 
    738     def start(self):
     737    test_summary_re = re.compile(r'^FAILED \((?P<counts>[^)]+)\)')  # e.g.: FAILED (failures=2, errors=1)
     738
     739    def start(self):
     740        if USE_BUILDBOT_VERSION2:
     741            self.log_observer = ParseByLineLogObserver(self.parseOutputLine)
     742            self.addLogObserver('stdio', self.log_observer)
     743            self.failedTestCount = 0
    739744        platform = self.getProperty('platform')
    740745        # Python tests are flaky on the GTK builders, running them serially
     
    748753        return shell.Test.start(self)
    749754
     755    def parseOutputLine(self, line):
     756        match = self.test_summary_re.match(line)
     757        if match:
     758            self.failedTestCount = sum(int(component.split('=')[1]) for component in match.group('counts').split(', '))
     759
    750760    def countFailures(self, cmd):
     761        if USE_BUILDBOT_VERSION2:
     762            return self.failedTestCount
     763
    751764        logText = cmd.logs['stdio'].getText()
    752765        # We're looking for the line that looks like this: FAILED (failures=2, errors=1)
  • trunk/Tools/ChangeLog

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