Re: [PATCH] tests: remove hostdevmgr directory on cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/28/2014 08:00 AM, Martin Kletzander wrote:
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]