Skip to content

Commit

Permalink
Merge pull request #5170 from smitterl/fix_save_restore
Browse files Browse the repository at this point in the history
virsh_save/restore: improve tear down
  • Loading branch information
Yingshun authored Sep 12, 2023
2 parents 172f212 + 4047dfd commit fc06e59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvirt/tests/src/virsh_cmd/domain/virsh_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,5 @@ def check_file_own(file_path, exp_uid, exp_gid):
export_dir=params.get("export_dir"), rm_export_dir=False)
if setup_iscsi:
libvirt.setup_or_cleanup_iscsi(False)
if os.path.exists(tmp_file):
os.remove(tmp_file)
2 changes: 2 additions & 0 deletions libvirt/tests/src/virsh_cmd/domain/virsh_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,5 @@ def create_alter_xml(vm_name):
finally:
if vm.is_paused():
virsh.resume(vm_name)
if os.path.exists(savefile):
os.remove(savefile)

0 comments on commit fc06e59

Please sign in to comment.