tests: remove hostdevmgr directory on cleanup

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2014-04-28 15:34:52 +02:00
parent 4f70ae2409
commit fbcd9d3252
1 changed files with 3 additions and 0 deletions

View File

@ -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);