]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests; Don't cause test failures on cleanup errors
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 1 Dec 2016 23:34:00 +0000 (18:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 8 Dec 2016 09:17:03 +0000 (10:17 +0100)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/lxc-test-usernic.in

index 75dd9844c4b100041036faf2284cb406ec70ff81..a5a6d34965f752c32b783aafa639ba1a7983bc29 100755 (executable)
@@ -27,9 +27,9 @@ DONE=0
 LXC_USER_NIC="@LIBEXECDIR@/lxc/lxc-user-nic"
 
 cleanup() {
-       (
-               set +e
+       set +e
 
+       (
                lxc-stop -n usernic-c1 -k
                lxc-destroy -n usernic-c1