From: 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> Cc: kvm@vger.kernel.org, avi@redhat.com, mgoldish@redhat.com, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: 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 Sender: kvm-owner@vger.kernel.org List-ID: The code to remove the migration files was one indentation block deeper than it should - my mistake. Now, we ensure the files are being cleaned up at the end of the test. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/kvm_test_utils.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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) -- 1.7.0.1