On Tue, Jul 10, 2018 at 05:46:01PM -0400, Cole Robinson wrote:
Add a 'skipUpdateCaps' bool that we set for test_driver.c
nodedevs
which will skip accessing host resources via virNodeDeviceUpdateCaps
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
...
@@ -5565,6 +5566,7 @@ testNodeDeviceMockCreateVport(testDriverPtr
driver,
goto cleanup;
def = NULL;
objdef = virNodeDeviceObjGetDef(obj);
+ virNodeDeviceObjSetSkipUpdateCaps(obj, true);
I'd probably move this 2 lines up, but I don't really care.