Title: [233527] trunk/Tools
Revision
233527
Author
[email protected]
Date
2018-07-05 10:25:06 -0700 (Thu, 05 Jul 2018)

Log Message

[ews-build] WebKitPy-Tests-EWS should output result in json
https://bugs.webkit.org/show_bug.cgi?id=187331

Reviewed by David Kilzer.

* BuildSlaveSupport/ews-build/steps.py:
(RunWebKitPyTests): Passed --json-output parameter to test-webkitpy.
* BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps.py (233526 => 233527)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2018-07-05 17:22:17 UTC (rev 233526)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2018-07-05 17:25:06 UTC (rev 233527)
@@ -98,7 +98,9 @@
     description = ['webkitpy-tests running']
     descriptionDone = ['webkitpy-tests']
     flunkOnFailure = True
-    command = ['Tools/Scripts/test-webkitpy']
+    jsonFileName = 'webkitpy_test_results.json'
+    logfiles = {'json': jsonFileName}
+    command = ['Tools/Scripts/test-webkitpy', '--json-output={0}'.format(jsonFileName)]
 
     def __init__(self, **kwargs):
         super(RunWebKitPyTests, self).__init__(timeout=2 * 60, **kwargs)

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py (233526 => 233527)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2018-07-05 17:22:17 UTC (rev 233526)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2018-07-05 17:25:06 UTC (rev 233527)
@@ -309,7 +309,8 @@
         self.setupStep(RunWebKitPyTests())
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/test-webkitpy'],
+                        command=['Tools/Scripts/test-webkitpy', '--json-output=webkitpy_test_results.json'],
+                        logfiles=RunWebKitPyTests.logfiles,
                         timeout=120,
                         )
             + 0,
@@ -321,7 +322,8 @@
         self.setupStep(RunWebKitPyTests())
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/test-webkitpy'],
+                        command=['Tools/Scripts/test-webkitpy', '--json-output=webkitpy_test_results.json'],
+                        logfiles=RunWebKitPyTests.logfiles,
                         timeout=120,
                         )
             + ExpectShell.log('stdio', stdout='''Ran 1744 tests in 5.913s

Modified: trunk/Tools/ChangeLog (233526 => 233527)


--- trunk/Tools/ChangeLog	2018-07-05 17:22:17 UTC (rev 233526)
+++ trunk/Tools/ChangeLog	2018-07-05 17:25:06 UTC (rev 233527)
@@ -1,3 +1,14 @@
+2018-07-05  Aakash Jain  <[email protected]>
+
+        [ews-build] WebKitPy-Tests-EWS should output result in json
+        https://bugs.webkit.org/show_bug.cgi?id=187331
+
+        Reviewed by David Kilzer.
+
+        * BuildSlaveSupport/ews-build/steps.py:
+        (RunWebKitPyTests): Passed --json-output parameter to test-webkitpy.
+        * BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.
+
 2018-07-05  Philippe Normand  <[email protected]>
 
         [Flatpak] Add gst-libav to dependencies
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to