diff --git a/libvirt/tests/src/virtual_disks/vhostvdpa_block_backend_type/nodedev_vhostvdpa_disk.py b/libvirt/tests/src/virtual_disks/vhostvdpa_block_backend_type/nodedev_vhostvdpa_disk.py index 8016649d5c..8543a75eb8 100644 --- a/libvirt/tests/src/virtual_disks/vhostvdpa_block_backend_type/nodedev_vhostvdpa_disk.py +++ b/libvirt/tests/src/virtual_disks/vhostvdpa_block_backend_type/nodedev_vhostvdpa_disk.py @@ -19,6 +19,7 @@ def check_nodedev_xml(dev_name): test.log.info(f"TEST_STEP: Check xml for node device - {dev_name}.") nodexml = nodedev_xml.NodedevXML.new_from_dumpxml(dev_name) nodedev_attrs = nodexml.fetch_attrs() + nodedev_attrs.update({"cap": {"chardev": nodexml.cap.get_chardev()}}) idx = nodedev_attrs["path"][-1] exp_attrs = {"driver_name": "vhost_vdpa", "cap_type": "vdpa", "cap": {"chardev": f"/dev/vhost-vdpa-{idx}"}}