Changeset 269959 in webkit
- Timestamp:
- Nov 18, 2020 8:13:21 AM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/build-webkit-org/steps.py
r269958 r269959 821 821 command = ["perl", "./Tools/Scripts/test-webkitperl"] 822 822 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')) 823 836 824 837 def countFailures(self, cmd): 838 if USE_BUILDBOT_VERSION2: 839 return self.failedTestCount 840 825 841 logText = cmd.logs['stdio'].getText() 826 842 # We're looking for the line that looks like this: Failed 2/19 test programs. 5/363 subtests failed. -
trunk/Tools/ChangeLog
r269958 r269959 1 2020-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 1 14 2020-11-18 Aakash Jain <aakash_jain@apple.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.