mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: remove hostdevmgr directory on cleanup
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@@ -65,6 +65,9 @@ myCleanup(void)
|
||||
}
|
||||
|
||||
if (mgr) {
|
||||
if (mgr->stateDir && !getenv("LIBVIRT_SKIP_CLEANUP"))
|
||||
virFileDeleteTree(mgr->stateDir);
|
||||
|
||||
virObjectUnref(mgr->activePCIHostdevs);
|
||||
virObjectUnref(mgr->inactivePCIHostdevs);
|
||||
virObjectUnref(mgr->activeUSBHostdevs);
|
||||
|
||||
Reference in New Issue
Block a user