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

stgraber on Github lxc-bot at linuxcontainers.org
Mon Dec 9 22:24:44 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/20191209/75957496/attachment.bin>
-------------- next part --------------
From 9986f2f416b24d73f0cebbbb35abfe7d29854c2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 9 Dec 2019 17:23:46 -0500
Subject: [PATCH] tests: Always pass --force
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/image_profiles.sh | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/test/suites/image_profiles.sh b/test/suites/image_profiles.sh
index 5aae2fc5dd..3321ea7ba8 100644
--- a/test/suites/image_profiles.sh
+++ b/test/suites/image_profiles.sh
@@ -5,8 +5,7 @@ test_image_nil_profile_list() {
   lxc info c1 | grep -q "Profiles: default" || false
 
   # Cleanup
-  lxc stop c1
-  lxc delete c1
+  lxc delete c1 -f
   lxc image delete testimage
 }
 
@@ -25,8 +24,7 @@ test_image_empty_profile_list() {
   lxc info c1 | grep -q "Profiles: $" || false
 
   # Cleanup
-  lxc stop c1
-  lxc delete c1
+  lxc delete c1 -f
   lxc image delete testimage
 }
 
@@ -51,8 +49,7 @@ test_image_alternate_profile_list() {
   lxc info c1 | grep -q "Profiles: p1, p2, p3" || false
 
   # Cleanup
-  lxc stop c1
-  lxc delete c1
+  lxc delete c1 -f
   lxc profile delete p1
   lxc profile delete p2
   lxc profile delete p3


More information about the lxc-devel mailing list