From patchwork Tue Aug 23 20:36:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 1089822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7NKb0Td007828 for ; Tue, 23 Aug 2011 20:37:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755957Ab1HWUg4 (ORCPT ); Tue, 23 Aug 2011 16:36:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64126 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753486Ab1HWUg4 (ORCPT ); Tue, 23 Aug 2011 16:36:56 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7NKat68000447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 23 Aug 2011 16:36:55 -0400 Received: from freedom.local.com (vpn-10-148.rdu.redhat.com [10.11.10.148]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7NKaopg001136; Tue, 23 Aug 2011 16:36:52 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] virt: Fix file_transfer subtest Date: Tue, 23 Aug 2011 17:36:31 -0300 Message-Id: <1314131791-3831-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 23 Aug 2011 20:37:01 +0000 (UTC) Turns out we were using a hardcoded cleanup command in the cleanup phase for the file_transfer test, rather than picking up the one available on params. This patch fixes that bug. Signed-off-by: Lucas Meneghel Rodrigues --- client/virt/tests/file_transfer.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/tests/file_transfer.py b/client/virt/tests/file_transfer.py index 5f6672d..2d0ffad 100644 --- a/client/virt/tests/file_transfer.py +++ b/client/virt/tests/file_transfer.py @@ -74,7 +74,7 @@ def run_file_transfer(test, params, env): finally: logging.info('Cleaning temp file on guest') - session.cmd("rm -rf %s" % guest_path) + session.cmd("%s %s" % (clean_cmd, guest_path)) logging.info('Cleaning temp files on host') try: os.remove(host_path)