avocado.remote.runner: Add compatibility option to run_suite

In the local runner, we use the multiplexer, but not so
in remote runner mode. Let's add the compatibility option
here to resolve the bug that broke the remote plugin.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 627a8c44
......@@ -107,15 +107,17 @@ class RemoteTestRunner(TestRunner):
return json_result
def run_suite(self, test_suite):
def run_suite(self, test_suite, mux):
"""
Run one or more tests and report with test result.
:param params_list: a list of param dicts.
:param mux: A multiplex iterator (unused here)
:return: a list of test failures.
"""
del test_suite # using self.result.urls instead
del mux # we're not using multiplexation here
failures = []
self.result.setup()
results = self.run_test(self.result.urls)
......
......@@ -85,7 +85,7 @@ class RemoteTestRunnerTest(unittest.TestCase):
def test_run_suite(self):
""" Test RemoteTestRunner.run_suite() """
self.remote.run_suite(None)
self.remote.run_suite(None, None)
flexmock_teardown() # Checks the expectations
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册