test: Fix virsh nodedev-list

$ 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>
This commit is contained in:
Cole Robinson 2024-03-21 18:50:22 -04:00
parent e5b7f1e266
commit 66e4b56016

View 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);