From patchwork Wed Jun 23 16:49:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 107666 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5NGnY4r021625 for ; Wed, 23 Jun 2010 16:49:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186Ab0FWQtc (ORCPT ); Wed, 23 Jun 2010 12:49:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36507 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168Ab0FWQtc (ORCPT ); Wed, 23 Jun 2010 12:49:32 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5NGnVn9001021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jun 2010 12:49:31 -0400 Received: from localhost.localdomain (vpn-9-236.rdu.redhat.com [10.11.9.236]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5NGnSsY009140; Wed, 23 Jun 2010 12:49:29 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, avi@redhat.com, mgoldish@redhat.com, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: migrate - remove gzipped images when test finishes Date: Wed, 23 Jun 2010 13:49:26 -0300 Message-Id: <1277311766-15143-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 23 Jun 2010 16:49:35 +0000 (UTC) diff --git a/client/tests/kvm/kvm_test_utils.py b/client/tests/kvm/kvm_test_utils.py index da33b8b..53c11ae 100644 --- a/client/tests/kvm/kvm_test_utils.py +++ b/client/tests/kvm/kvm_test_utils.py @@ -222,8 +222,10 @@ def migrate(vm, env=None, mig_timeout=3600, mig_protocol="tcp", if "paused" in o: logging.debug("Destination VM is paused, resuming it...") dest_vm.monitor.cmd("cont") - if os.path.exists(migration_file): - os.remove(migration_file) + + if os.path.exists(migration_file): + logging.debug("Removing migration file %s", migration_file) + os.remove(migration_file) # Kill the source VM vm.destroy(gracefully=False)