Title: [270246] trunk/Tools
Revision
270246
Author
[email protected]
Date
2020-11-30 08:39:25 -0800 (Mon, 30 Nov 2020)

Log Message

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

Reviewed by Jonathan Bedard.

* CISupport/build-webkit-org/steps.py:
(RunTest262Tests):
(RunTest262Tests.start): Initialized log observer.
(RunTest262Tests.parseOutputLine): Parse each log line as they come.
(RunTest262Tests.countFailures): Updated to return failedTestCount.

Modified Paths

Diff

Modified: trunk/Tools/CISupport/build-webkit-org/steps.py (270245 => 270246)


--- trunk/Tools/CISupport/build-webkit-org/steps.py	2020-11-30 16:35:19 UTC (rev 270245)
+++ trunk/Tools/CISupport/build-webkit-org/steps.py	2020-11-30 16:39:25 UTC (rev 270246)
@@ -499,12 +499,25 @@
     descriptionDone = ["test262-tests"]
     failedTestsFormatString = "%d Test262 test%s failed"
     command = ["perl", "./Tools/Scripts/test262-runner", "--verbose", WithProperties("--%(configuration)s")]
+    test_summary_re = re.compile(r'^\! NEW FAIL')
 
     def start(self):
+        if USE_BUILDBOT_VERSION2:
+            self.log_observer = ParseByLineLogObserver(self.parseOutputLine)
+            self.addLogObserver('stdio', self.log_observer)
+            self.failedTestCount = 0
         appendCustomBuildFlags(self, self.getProperty('platform'), self.getProperty('fullPlatform'))
         return shell.Test.start(self)
 
+    def parseOutputLine(self, line):
+        match = self.test_summary_re.match(line)
+        if match:
+            self.failedTestCount += 1
+
     def countFailures(self, cmd):
+        if USE_BUILDBOT_VERSION2:
+            return self.failedTestCount
+
         logText = cmd.logs['stdio'].getText()
         matches = re.findall(r'^\! NEW FAIL', logText, flags=re.MULTILINE)
         if matches:

Modified: trunk/Tools/ChangeLog (270245 => 270246)


--- trunk/Tools/ChangeLog	2020-11-30 16:35:19 UTC (rev 270245)
+++ trunk/Tools/ChangeLog	2020-11-30 16:39:25 UTC (rev 270246)
@@ -1,5 +1,18 @@
 2020-11-30  Aakash Jain  <[email protected]>
 
+        [build.webkit.org] Update RunTest262Tests step for new buildbot
+        https://bugs.webkit.org/show_bug.cgi?id=219356
+
+        Reviewed by Jonathan Bedard.
+
+        * CISupport/build-webkit-org/steps.py:
+        (RunTest262Tests):
+        (RunTest262Tests.start): Initialized log observer.
+        (RunTest262Tests.parseOutputLine): Parse each log line as they come.
+        (RunTest262Tests.countFailures): Updated to return failedTestCount.
+
+2020-11-30  Aakash Jain  <[email protected]>
+
         Automatically delete old data from ews buildbot instance
         https://bugs.webkit.org/show_bug.cgi?id=214921
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to