On 04/28/2014 08:00 AM, Martin Kletzander wrote:
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
tests/virhostdevtest.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c
index 089014e..de4cdde 100644
--- a/tests/virhostdevtest.c
+++ b/tests/virhostdevtest.c
@@ -65,6 +65,9 @@ myCleanup(void)
}
if (mgr) {
+ if (mgr->stateDir && !getenv("LIBVIRT_SKIP_CLEANUP"))
+ virFileDeleteTree(mgr->stateDir);
+
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org