[lxc-devel] [lxd/master] tests: Fix security test on non-shiftfs

stgraber on Github lxc-bot at linuxcontainers.org
Fri Dec 6 20:47:22 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 456 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20191206/3d317c69/attachment.bin>
-------------- next part --------------
From fde7877d4f30ee97779f8fcb1c65697eafc34a92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 6 Dec 2019 15:46:34 -0500
Subject: [PATCH] tests: Fix security test on non-shiftfs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Image publication no longer shiftfs so publish isn't impacted by the
shifting protection anymore.

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

diff --git a/test/suites/security.sh b/test/suites/security.sh
index da6acdd4d4..12a7130548 100644
--- a/test/suites/security.sh
+++ b/test/suites/security.sh
@@ -172,7 +172,7 @@ test_security_protection() {
     lxc start c1
     lxc stop c1 --force
 
-    ! lxc publish c1 --alias=protected || false
+    lxc publish c1 --alias=protected
     lxc snapshot c1
     lxc publish c1/snap0 --alias=protected
     lxc image delete protected


More information about the lxc-devel mailing list