[lxc-devel] [lxc/master] apparmore: Improve testing on apparmor python script

4383 on Github lxc-bot at linuxcontainers.org
Tue Feb 12 22:52:18 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 417 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190212/8b8565c8/attachment.bin>
-------------- next part --------------
From 531db5d477abfaaa81d5b75e0656f1b33ed54885 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20Beraud?= <hberaud at redhat.com>
Date: Tue, 12 Feb 2019 23:47:25 +0100
Subject: [PATCH] apparmore: Improve testing on apparmor python script
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Compare command output to already existing container-rules file

Signed-off-by: Hervé Beraud <hberaud at redhat.com>
---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 3754ab6d5..2a320dec0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,8 +27,9 @@ script:
  - ../configure --enable-tests --with-distro=unknown
  - make -j4
  - make DESTDIR=$TRAVIS_BUILD_DIR/install install
- - cd ..
- - ./config/apparmor/lxc-generate-aa-rules.py config/apparmor/container-rules.base
+ - cd ../config/apparmor
+ - ./lxc-generate-aa-rules.py container-rules.base > /tmp/output
+ - diff /tmp/output container-rules
 
 notifications:
   email:


More information about the lxc-devel mailing list