]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: make parsed nodedevs active and persistent
authorCole Robinson <crobinso@redhat.com>
Fri, 22 Mar 2024 14:45:48 +0000 (10:45 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 24 Apr 2024 13:38:54 +0000 (09:38 -0400)
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>
src/test/test_driver.c

index 41828f86b656b7f7fe3147c0c03a3ba551e54760..153ab7cdc25b98330d16ca4443b289c0fa5575ba 100644 (file)
@@ -1269,6 +1269,8 @@ testParseNodedevs(testDriver *privconn,
             return -1;
         }
 
+        virNodeDeviceObjSetPersistent(obj, true);
+        virNodeDeviceObjSetActive(obj, true);
         virNodeDeviceObjSetSkipUpdateCaps(obj, true);
         virNodeDeviceObjEndAPI(&obj);
     }