提交 9b437dde 编写于 作者: C Cleber Rosa

remote test execution: do not create remote dir when not copying tests

This method should really return earlier if wasn't asked to copy file
to remote side, that is, there's no need to create that directory in
those cases.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 d2a41697
......@@ -50,10 +50,11 @@ class RemoteTestResult(HumanTestResult):
$remote_test_dir + $test_absolute_path.
:note: Default tests execution is translated into absolute paths too
"""
# TODO: Use `avocado.core.loader.TestLoader` instead
self.remote.makedir(self.remote_test_dir)
if self.args.remote_no_copy: # Leave everything as is
return
# TODO: Use `avocado.core.loader.TestLoader` instead
self.remote.makedir(self.remote_test_dir)
paths = set()
for i in xrange(len(self.urls)):
url = self.urls[i]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册