Add support for webkitpy tests EWS
[WebKit-https.git] / Tools / Scripts / webkitpy / tool / steps / steps_unittest.py
index 6fc41ea..1d280a3 100644 (file)
@@ -261,6 +261,19 @@ This patch does not have relevant changes.
 """
         OutputCapture().assert_outputs(self, step.run, [{}], expected_logs=expected_logs)
 
+    def test_runtests_webkitpy(self):
+        mock_options = self._step_options()
+        mock_options.non_interactive = False
+        mock_options.group = "webkitpy"
+        step = steps.RunTests(MockTool(log_executive=True), mock_options)
+        tool = MockTool(log_executive=True)
+        # FIXME: We shouldn't use a real port-object here, but there is too much to mock at the moment.
+        tool._deprecated_port = DeprecatedPort()
+        step = steps.RunTests(tool, mock_options)
+        expected_logs = """MOCK run_and_throw_if_fail: ['Tools/Scripts/test-webkitpy', '--json-output=/tmp/python-unittest-results/webkitpy_test_results.json'], cwd=/mock-checkout
+"""
+        OutputCapture().assert_outputs(self, step.run, [{}], expected_logs=expected_logs)
+
     def test_patch_relevant_bindings(self):
         self.maxDiff = None
         mock_options = self._step_options()