[lxc-devel] [lxd/master] tests: Perform a lazy umount in case of errors

stgraber on Github lxc-bot at linuxcontainers.org
Thu Jul 12 19:51:49 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180712/299b603f/attachment.bin>
-------------- next part --------------
From f87f9c0ccfd32a1439dc514574fb040754ccf8f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 12 Jul 2018 15:51:02 -0400
Subject: [PATCH] tests: Perform a lazy umount in case of errors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 test/includes/lxd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/includes/lxd.sh b/test/includes/lxd.sh
index f2e15b34a..826b7f978 100644
--- a/test/includes/lxd.sh
+++ b/test/includes/lxd.sh
@@ -290,7 +290,7 @@ wipe() {
     done
 
     if mountpoint -q "${1}"; then
-        umount "${1}"
+        umount -l "${1}"
     fi
 
     rm -Rf "${1}"


More information about the lxc-devel mailing list