Skip to content

Commit

Permalink
virt_xml_validate: remove vm snapshot after use
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-jugraham committed Jan 10, 2025
1 parent eca2264 commit 728f871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvirt/tests/src/virt_cmd/virt_xml_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def check_info(s1, s2, errorstr="Values differ"):

cmd_result = virsh.snapshot_dumpxml(vm_name, snapshot_name, to_file=file)
libvirt.check_exit_status(cmd_result)
cmd_result = virsh.snapshot_delete(vm_name, snapshot_name, to_file=file)
libvirt.check_exit_status(cmd_result)


def network_validate(test, net_name, file=None, **virsh_dargs):
Expand Down

0 comments on commit 728f871

Please sign in to comment.