[lxc-devel] [lxd/master] tests: Always pass --force to stop

stgraber on Github lxc-bot at linuxcontainers.org
Fri Aug 24 00:51:24 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/20180824/6216686d/attachment.bin>
-------------- next part --------------
From 1e3e5dad6c2947b7310f03dc5237dc02fbb96c10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 23 Aug 2018 20:51:03 -0400
Subject: [PATCH] tests: Always pass --force to stop
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/security.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/suites/security.sh b/test/suites/security.sh
index 3fdc63e172..b5bfa06aad 100644
--- a/test/suites/security.sh
+++ b/test/suites/security.sh
@@ -113,14 +113,14 @@ test_security_protection() {
   ensure_has_localhost_remote "${LXD_ADDR}"
 
   lxc launch testimage c1
-  lxc stop c1
+  lxc stop c1 --force
   lxc snapshot c1
   lxc delete c1
 
   lxc profile set default security.protection.delete true
 
   lxc launch testimage c1
-  lxc stop c1
+  lxc stop c1 --force
   lxc snapshot c1
   lxc delete c1/snap0
   ! lxc delete c1


More information about the lxc-devel mailing list