From: Stéphane Graber Date: Thu, 1 Dec 2016 23:34:00 +0000 (-0500) Subject: tests; Don't cause test failures on cleanup errors X-Git-Tag: lxc-2.1.0~231^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1337%2Fhead;p=thirdparty%2Flxc.git tests; Don't cause test failures on cleanup errors Signed-off-by: Stéphane Graber --- diff --git a/src/tests/lxc-test-usernic.in b/src/tests/lxc-test-usernic.in index 42a9a215f..0b99baa00 100755 --- a/src/tests/lxc-test-usernic.in +++ b/src/tests/lxc-test-usernic.in @@ -28,9 +28,9 @@ KNOWN_RELEASES="precise trusty xenial yakkety zesty" LXC_USER_NIC="@LIBEXECDIR@/lxc/lxc-user-nic" cleanup() { - ( - set +e + set +e + ( lxc-stop -n usernic-c1 -k lxc-destroy -n usernic-c1