KVM test: migrate - remove gzipped images when test finishes
PATCH 1/1 KVM test: migrate - remove gzipped images when test finishes
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 <[email protected]>
--- client/tests/kvm/kvm_test_utils.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
client/tests/kvm/kvm_test_utils.py +4 -2
@@ -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)
Signature · 1 line
1.7.0.1