mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 21:47:18 +00:00
tests: remove hostdevmgr directory on cleanup
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
4f70ae2409
commit
fbcd9d3252
@ -65,6 +65,9 @@ myCleanup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mgr) {
|
if (mgr) {
|
||||||
|
if (mgr->stateDir && !getenv("LIBVIRT_SKIP_CLEANUP"))
|
||||||
|
virFileDeleteTree(mgr->stateDir);
|
||||||
|
|
||||||
virObjectUnref(mgr->activePCIHostdevs);
|
virObjectUnref(mgr->activePCIHostdevs);
|
||||||
virObjectUnref(mgr->inactivePCIHostdevs);
|
virObjectUnref(mgr->inactivePCIHostdevs);
|
||||||
virObjectUnref(mgr->activeUSBHostdevs);
|
virObjectUnref(mgr->activeUSBHostdevs);
|
||||||
|
Loading…
Reference in New Issue
Block a user