Skip to content

Commit

Permalink
Merge pull request #6114 from bskjois/autodestroy
Browse files Browse the repository at this point in the history
Qemu: snapshot: Don't forbid snapshot if autodestroy is registered!
  • Loading branch information
Yingshun authored Jan 14, 2025
2 parents 3e5b13d + 05b6881 commit 2d34785
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,14 @@ def run(test, params, env):
# check status_error
if status_error == "yes":
if status == 0:
test.fail("Run successfully with wrong command!")
# snapshots can be created for the guests created
# with 'autodestroy' option on libvirt v5.8.0 and above!
if libvirt_version.version_compare(5, 8, 0) and \
create_autodestroy:
logging.info("Run passed as expected in "
"libvirt version >= 5.8.0")
else:
test.fail("Run successfully with wrong command!")
else:
# Check memspec file should be removed if failed
if (options.find("memspec") >= 0 and
Expand Down

0 comments on commit 2d34785

Please sign in to comment.