From 9c50a5260f6356895e4e8a4fcae25b26a44a3c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Thu, 1 Dec 2016 18:34:00 -0500 Subject: [PATCH] tests; Don't cause test failures on cleanup errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/tests/lxc-test-usernic.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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