Title: [199916] trunk/Tools
Revision
199916
Author
commit-qu...@webkit.org
Date
2016-04-22 15:38:54 -0700 (Fri, 22 Apr 2016)

Log Message

Add JSC test results in json format to a buildbot log
https://bugs.webkit.org/show_bug.cgi?id=156920

Patch by Srinivasan Vijayaraghavan <svijayaragha...@apple.com> on 2016-04-22
Reviewed by Alexey Proskuryakov.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
(RunJavaScriptCoreTests):
Add runtime flag to output json into buildbot
* Scripts/run-_javascript_core-tests:
(runJSCStressTests):
Change key names and remove redundant count key

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg (199915 => 199916)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2016-04-22 22:30:00 UTC (rev 199915)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg	2016-04-22 22:38:54 UTC (rev 199916)
@@ -44,7 +44,7 @@
 
 c['status'] = []
 c['status'].append(html.WebStatus(http_port=8710,
-                                  revlink="https://trac.webkit.org/changeset/%s", 
+                                  revlink="https://trac.webkit.org/changeset/%s",
                                   changecommentlink=(r"(https://bugs\.webkit\.org/show_bug\.cgi\?id=|webkit\.org/b/)(\d+)", r"https://bugs.webkit.org/show_bug.cgi?id=\2"),
                                   authz=authz))
 
@@ -228,7 +228,7 @@
 
     def createSummary(self, log):
         platform = self.getProperty('platform')
-        if platform.startswith('mac'):    
+        if platform.startswith('mac'):
             warnings = []
             errors = []
             sio = cStringIO.StringIO(log.getText())
@@ -298,8 +298,10 @@
     name = "jscore-test"
     description = ["jscore-tests running"]
     descriptionDone = ["jscore-tests"]
-    command = ["perl", "./Tools/Scripts/run-_javascript_core-tests", "--no-build", WithProperties("--%(configuration)s")]
+    _jsonFileName = "jsc_test_failures.json"
+    command = ["perl", "./Tools/Scripts/run-_javascript_core-tests", "--no-build", WithProperties("--%(configuration)s", "--json-output=%(_jsonFileName)s")]
     failedTestsFormatString = "%d JSC test%s failed"
+    logfiles = {"json": _jsonFileName}
 
     def start(self):
         appendCustomBuildFlags(self, self.getProperty('platform'), self.getProperty('fullPlatform'))

Modified: trunk/Tools/ChangeLog (199915 => 199916)


--- trunk/Tools/ChangeLog	2016-04-22 22:30:00 UTC (rev 199915)
+++ trunk/Tools/ChangeLog	2016-04-22 22:38:54 UTC (rev 199916)
@@ -1,3 +1,17 @@
+2016-04-22  Srinivasan Vijayaraghavan  <svijayaragha...@apple.com>
+
+        Add JSC test results in json format to a buildbot log
+        https://bugs.webkit.org/show_bug.cgi?id=156920
+
+        Reviewed by Alexey Proskuryakov.
+
+        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
+        (RunJavaScriptCoreTests):
+        Add runtime flag to output json into buildbot
+        * Scripts/run-_javascript_core-tests:
+        (runJSCStressTests):
+        Change key names and remove redundant count key
+
 2016-04-22  Ryan Haddad  <ryanhad...@apple.com>
 
         Update expected result for WKPreferencesGetOfflineWebApplicationCacheEnabled after r199854

Modified: trunk/Tools/Scripts/run-_javascript_core-tests (199915 => 199916)


--- trunk/Tools/Scripts/run-_javascript_core-tests	2016-04-22 22:30:00 UTC (rev 199915)
+++ trunk/Tools/Scripts/run-_javascript_core-tests	2016-04-22 22:38:54 UTC (rev 199916)
@@ -332,8 +332,7 @@
 
     if (defined($jsonFileName)) {
         my %jsonData = (
-            "numJSCStressFailures" => $numJSCStressFailures,
-            "jscStressFailList" => \@jscStressFailList,
+            "failures" => \@jscStressFailList,
         );
 
         open(my $fileHandler, ">", $jsonFileName) or die;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to