Skip to content

Commit

Permalink
Merge pull request #5000 from dzhengfy/fix_snapshot_del_version
Browse files Browse the repository at this point in the history
memory_snapshot_delete: fix version checking
  • Loading branch information
Yingshun committed Jun 29, 2023
2 parents 7a55619 + 87c841b commit b937ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libvirt/tests/cfg/snapshot/memory_snapshot_delete.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
start_vm = no
snapshot_disk_list = "[{'disk_name': 'vda', 'disk_snapshot': 'no'}, {'disk_name': 'vdb', 'disk_snapshot': 'no'}]"
snapshot_dict = {'description': 'Snapshot test', 'snap_name': '%s', 'mem_snap_type': 'external', 'mem_file': '%s'}
func_supported_since_libvirt_ver = (9, 0, 0)
variants disk_format:
- type_qcow2:
disk_driver = {'driver': {'name': 'qemu', 'type': 'qcow2'}}
Expand Down
2 changes: 2 additions & 0 deletions libvirt/tests/src/snapshot/memory_snapshot_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os

from virttest import data_dir
from virttest import libvirt_version
from virttest import virsh
from virttest.libvirt_xml import vm_xml

Expand Down Expand Up @@ -119,6 +120,7 @@ def run(test, params, env):
"""
Deletion test for memory only snapshot
"""
libvirt_version.is_libvirt_feature_supported(params)
vm_name = params.get("main_vm")
vm = env.get_vm(vm_name)
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_name)
Expand Down

0 comments on commit b937ab4

Please sign in to comment.