[libvirt] [PATCH] tests: remove hostdevmgr directory on cleanup
Eric Blake
eblake at redhat.com
Mon Apr 28 18:22:55 UTC 2014
On 04/28/2014 08:00 AM, Martin Kletzander wrote:
> Signed-off-by: Martin Kletzander <mkletzan at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140428/7f8073cb/attachment-0001.sig>
More information about the libvir-list
mailing list