提交 a32f09c8 编写于 作者: C Cleber Rosa

avocado/core/remote/runner.py: get the arguments from the job object

Instead of getting the application arguments from the test result,
let's get them from from job object itself. The idea is that, once
fnctionality is moved from the test result class to the test runner
class, the same source of arguments can be used for the incoming
code.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 1fbbedaa
......@@ -81,12 +81,12 @@ class RemoteTestRunner(TestRunner):
"""
extra_params = []
mux_files = [os.path.join(self.remote_test_dir, mux_file)
for mux_file in getattr(self.result.args,
for mux_file in getattr(self.job.args,
'multiplex_files') or []]
if mux_files:
extra_params.append("--multiplex-files %s" % " ".join(mux_files))
if getattr(self.result.args, "dry_run", False):
if getattr(self.job.args, "dry_run", False):
extra_params.append("--dry-run")
urls_str = " ".join(urls)
avocado_check_urls_cmd = ('cd %s; avocado list %s '
......@@ -161,7 +161,7 @@ class RemoteTestRunner(TestRunner):
fabric_logger.addHandler(file_handler)
paramiko_logger.addHandler(file_handler)
logger_list = [fabric_logger]
if self.result.args.show_job_log:
if self.job.args.show_job_log:
logger_list.append(app_logger)
output.add_console_handler(paramiko_logger)
sys.stdout = output.LoggingFile(logger=logger_list)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册