]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test: Fix `virsh nodedev-list`
authorCole Robinson <crobinso@redhat.com>
Thu, 21 Mar 2024 22:50:22 +0000 (18:50 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 17 Apr 2024 14:51:56 +0000 (10:51 -0400)
$ virsh --connect test:///default nodedev-list
error: Failed to list node devices
error: unsupported flags (0x80000000) in function testConnectListAllNodeDevices

The test driver handles the nodedev state flags, we just need to
allow them

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/test/test_driver.c

index ed0cdc0dabe8bc1a54f94aec1c90e5788d922f2f..852a084bce4a51cab737d68222440ffdaf090d76 100644 (file)
@@ -7481,7 +7481,7 @@ testConnectListAllNodeDevices(virConnectPtr conn,
 {
     testDriver *driver = conn->privateData;
 
-    virCheckFlags(VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP, -1);
+    virCheckFlags(VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_ALL, -1);
 
     return virNodeDeviceObjListExport(conn, driver->devs, devices,
                                       NULL, flags);