From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Doktor Subject: [PATCH] * 'tar' needs relative paths to strip the leading '/' Date: Fri, 8 Jul 2011 10:46:26 +0200 Message-ID: <1310114786-12695-2-git-send-email-ldoktor@redhat.com> References: <1310114786-12695-1-git-send-email-ldoktor@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autotest@test.kernel.org, kvm@vger.kernel.org, kvm-autotest@redhat.com, fyang@redhat.com, lmr@redhat.com, ldoktor@redhat.com, jzupka@redhat.com Return-path: In-Reply-To: <1310114786-12695-1-git-send-email-ldoktor@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Signed-off-by: Lukas Doktor --- client/virt/virt_test_utils.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/virt/virt_test_utils.py b/client/virt/virt_test_utils.py index 2636352..1ef4f69 100644 --- a/client/virt/virt_test_utils.py +++ b/client/virt/virt_test_utils.py @@ -524,11 +524,11 @@ def run_autotest(vm, session, control_path, timeout, outputdir, params): mig_timeout = float(params.get("mig_timeout", "3600")) mig_protocol = params.get("migration_protocol", "tcp") - compressed_autotest_path = "/tmp/autotest.tar.bz2" + compressed_autotest_path = os.path.relpath("/tmp/autotest.tar.bz2") # To avoid problems, let's make the test use the current AUTODIR # (autotest client path) location - autotest_path = os.environ['AUTODIR'] + autotest_path = os.path.relpath(os.environ['AUTODIR']) # tar the contents of bindir/autotest cmd = "tar cvjf %s %s/*" % (compressed_autotest_path, autotest_path) -- 1.7.6