Changeset 269958 in webkit
- Timestamp:
- Nov 18, 2020 8:05:17 AM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/build-webkit-org/steps.py
r269904 r269958 735 735 736 736 class 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 739 744 platform = self.getProperty('platform') 740 745 # Python tests are flaky on the GTK builders, running them serially … … 748 753 return shell.Test.start(self) 749 754 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 750 760 def countFailures(self, cmd): 761 if USE_BUILDBOT_VERSION2: 762 return self.failedTestCount 763 751 764 logText = cmd.logs['stdio'].getText() 752 765 # We're looking for the line that looks like this: FAILED (failures=2, errors=1) -
trunk/Tools/ChangeLog
r269955 r269958 1 2020-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 1 14 2020-11-18 Michael Catanzaro <mcatanzaro@gnome.org> 2 15
Note: See TracChangeset
for help on using the changeset viewer.