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

stgraber on Github lxc-bot at linuxcontainers.org
Fri Jul 19 21:27:57 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/20190719/98d07e6d/attachment.bin>
-------------- next part --------------
From 9e15e5fb9cad6c187bdb7e68228c9eda0f38ceed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 19 Jul 2019 17:27:02 -0400
Subject: [PATCH] tests: Always pass -f 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/container_devices_nic_bridged_filtering.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/suites/container_devices_nic_bridged_filtering.sh b/test/suites/container_devices_nic_bridged_filtering.sh
index a4339f1b6d..105e05eb58 100644
--- a/test/suites/container_devices_nic_bridged_filtering.sh
+++ b/test/suites/container_devices_nic_bridged_filtering.sh
@@ -151,7 +151,7 @@ test_container_devices_nic_bridged_filtering() {
     false
   fi
 
-  lxc stop "${ctPrefix}A"
+  lxc stop -f "${ctPrefix}A"
   lxc config device set "${ctPrefix}A" eth0 security.ipv4_filtering false
   rm "${LXD_DIR}/networks/${brName}/dnsmasq.hosts/${ctPrefix}A"
 
@@ -169,7 +169,7 @@ test_container_devices_nic_bridged_filtering() {
   fi
 
   # Simulate changing DHCPv4 ranges.
-  lxc stop "${ctPrefix}A"
+  lxc stop -f "${ctPrefix}A"
   lxc network set "${brName}" ipv4.dhcp.ranges "192.0.2.100-192.0.2.110"
   lxc start "${ctPrefix}A"
 
@@ -272,7 +272,7 @@ test_container_devices_nic_bridged_filtering() {
     false
   fi
 
-  lxc stop "${ctPrefix}A"
+  lxc stop -f "${ctPrefix}A"
   lxc config device set "${ctPrefix}A" eth0 security.ipv6_filtering false
   rm "${LXD_DIR}/networks/${brName}/dnsmasq.hosts/${ctPrefix}A"
 


More information about the lxc-devel mailing list