diff --git a/libvirt/tests/src/snapshot/revert_memory_only_snap.py b/libvirt/tests/src/snapshot/revert_memory_only_snap.py index e54f8fac19..44138d05ba 100644 --- a/libvirt/tests/src/snapshot/revert_memory_only_snap.py +++ b/libvirt/tests/src/snapshot/revert_memory_only_snap.py @@ -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: diff --git a/libvirt/tests/src/snapshot/revert_snap_based_on_state.py b/libvirt/tests/src/snapshot/revert_snap_based_on_state.py index 04b55d6b89..468773efdf 100644 --- a/libvirt/tests/src/snapshot/revert_snap_based_on_state.py +++ b/libvirt/tests/src/snapshot/revert_snap_based_on_state.py @@ -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() diff --git a/libvirt/tests/src/snapshot/revert_snap_for_guest_with_genid.py b/libvirt/tests/src/snapshot/revert_snap_for_guest_with_genid.py index e633ad85fd..c3a967c039 100644 --- a/libvirt/tests/src/snapshot/revert_snap_for_guest_with_genid.py +++ b/libvirt/tests/src/snapshot/revert_snap_for_guest_with_genid.py @@ -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: