test: make parsed nodedevs active and persistent

This was the implied default before nodedevs gained a notion of
being inactive and transient. It also matches the implied default
when parsing other object types

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-22 10:45:48 -04:00
parent 7a5baa450d
commit 2b487f564e

View File

@ -1269,6 +1269,8 @@ testParseNodedevs(testDriver *privconn,
return -1;
}
virNodeDeviceObjSetPersistent(obj, true);
virNodeDeviceObjSetActive(obj, true);
virNodeDeviceObjSetSkipUpdateCaps(obj, true);
virNodeDeviceObjEndAPI(&obj);
}