[lxc-devel] [lxd/master] tests: Don't leak storage in ENOSPC test

stgraber on Github lxc-bot at linuxcontainers.org
Wed Dec 11 19:49:22 UTC 2019


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/20191211/4c8f87fc/attachment.bin>
-------------- next part --------------
From 3abe6e018979ea7305f106cde00844949d544dee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 11 Dec 2019 14:48:01 -0500
Subject: [PATCH] tests: Don't leak storage in ENOSPC test
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/suites/database.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/suites/database.sh b/test/suites/database.sh
index f2888541b5..f13497876f 100644
--- a/test/suites/database.sh
+++ b/test/suites/database.sh
@@ -125,8 +125,9 @@ test_database_no_disk_space(){
     # Removing the big file makes the database happy again.
     rm "${BIG_FILE}"
     lxc config set c "user.propZ" - < "${DATA}"
+    lxc delete -f c
   )
 
-  shutdown_lxd "${LXD_NOSPACE_DIR}"
   umount -l "${GLOBAL_DB_DIR}"
+  kill_lxd "${LXD_NOSPACE_DIR}"
 }


More information about the lxc-devel mailing list