diff --git a/avocado_vt/test.py b/avocado_vt/test.py index 67ed2477fa..b285f29247 100644 --- a/avocado_vt/test.py +++ b/avocado_vt/test.py @@ -18,7 +18,7 @@ import os import sys -import pipes +import shlex from avocado.core import exceptions from avocado.core import test @@ -173,8 +173,8 @@ def setUp(self): archive = os.path.join(os.path.dirname( libvirtd_log), "libvirtd.tar.gz") cmd = ("tar -zcf %s -P %s" - % (pipes.quote(archive), - pipes.quote(libvirtd_log))) + % (shlex.quote(archive), + shlex.quote(libvirtd_log))) if process.system(cmd) == 0: os.remove(libvirtd_log) else: