[lxc-devel] [PATCH] tests: Fix cleanup in lxc-test-unpriv

Serge Hallyn serge.hallyn at ubuntu.com
Fri Jan 24 05:42:45 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/tests/lxc-test-unpriv | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
> index ff2a44a..1e75eea 100755
> --- a/src/tests/lxc-test-unpriv
> +++ b/src/tests/lxc-test-unpriv
> @@ -34,7 +34,7 @@ cleanup() {
>  	run_cmd lxc-stop -n c1 -k
>  	pkill -u $(id -u $TUSER) -9
>  
> -	sed -i '/usernic-user/d' /var/run/lxc/nics /etc/lxc/lxc-usernet
> +	sed -i '/lxcunpriv/d' /var/run/lxc/nics /etc/lxc/lxc-usernet
>  	sed -i '/^lxcunpriv:/d' /etc/subuid /etc/subgid
>  
>  	rm -Rf $HDIR /run/user/$(id -u $TUSER)
> -- 
> 1.8.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list