提交 9b490fd8 编写于 作者: R Rudá Moura 提交者: Rudá Moura

Merge pull request #107 from lmr/fix-archive-mistake

Fix archive mistake
...@@ -18,8 +18,6 @@ import os ...@@ -18,8 +18,6 @@ import os
import logging import logging
import shutil import shutil
from avocado import test
from avocado import job
from avocado.utils import download, archive, build from avocado.utils import download, archive, build
log = logging.getLogger('avocado.test') log = logging.getLogger('avocado.test')
......
...@@ -94,8 +94,7 @@ class VMTestRunner(TestRunner): ...@@ -94,8 +94,7 @@ class VMTestRunner(TestRunner):
zip_filename = remote_log_dir + '.zip' zip_filename = remote_log_dir + '.zip'
zip_path_filename = os.path.join(local_log_dir, os.path.basename(zip_filename)) zip_path_filename = os.path.join(local_log_dir, os.path.basename(zip_filename))
self.result.vm.remote.receive_files(local_log_dir, zip_filename) self.result.vm.remote.receive_files(local_log_dir, zip_filename)
archive.uncompress_zip(zip_path_filename, archive.uncompress(zip_path_filename, local_log_dir)
local_log_dir)
os.remove(zip_path_filename) os.remove(zip_path_filename)
self.result.tear_down() self.result.tear_down()
return failures return failures
......
...@@ -109,7 +109,7 @@ class Remote(object): ...@@ -109,7 +109,7 @@ class Remote(object):
try: try:
fabric.operations.put(local_path, fabric.operations.put(local_path,
remote_path) remote_path)
except ValueError as err: except ValueError:
return False return False
return True return True
...@@ -124,6 +124,6 @@ class Remote(object): ...@@ -124,6 +124,6 @@ class Remote(object):
try: try:
fabric.operations.get(remote_path, fabric.operations.get(remote_path,
local_path) local_path)
except ValueError as err: except ValueError:
return False return False
return True return True
...@@ -29,7 +29,7 @@ class linuxbuild(test.Test): ...@@ -29,7 +29,7 @@ class linuxbuild(test.Test):
def setup(self): def setup(self):
kernel_version = self.params.linux_version kernel_version = self.params.linux_version
config_path = tarball_path = self.get_deps_path('config') config_path = self.get_deps_path('config')
self.linux_build = kernel_build.KernelBuild(kernel_version, self.linux_build = kernel_build.KernelBuild(kernel_version,
config_path, config_path,
self.srcdir) self.srcdir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册