Skip to content

Commit

Permalink
Merge pull request autotest#5561 from nanli1/fix_snapshot_case_check_…
Browse files Browse the repository at this point in the history
…libvirt_version_issue

fix snapshot case the libvirt version issue
  • Loading branch information
Yingshun authored Apr 10, 2024
2 parents c8e1c82 + 36654d1 commit 6f682c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libvirt/tests/src/snapshot/revert_memory_only_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def teardown_test():
target_disk = params.get("target_disk")
test_obj = snapshot_base.SnapshotTest(vm, test, params)
disk_obj = disk_base.DiskBase(test, vm, params)
libvirt_version.is_libvirt_feature_supported(params)

try:
libvirt_version.is_libvirt_feature_supported(params)
run_test()

finally:
Expand Down
3 changes: 1 addition & 2 deletions libvirt/tests/src/snapshot/revert_snap_based_on_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ def teardown_test():
expected_state = params.get("expected_state")
test_obj = snapshot_base.SnapshotTest(vm, test, params)

libvirt_version.is_libvirt_feature_supported(params)
try:
libvirt_version.is_libvirt_feature_supported(params)
run_test()

finally:
teardown_test()
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def teardown_test():
snap_options = params.get("snap_options")
test_obj = snapshot_base.SnapshotTest(vm, test, params)

libvirt_version.is_libvirt_feature_supported(params)
try:
libvirt_version.is_libvirt_feature_supported(params)
run_test()

finally:
Expand Down

0 comments on commit 6f682c9

Please sign in to comment.