The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2848

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Compare command output to already existing container-rules file

Signed-off-by: Hervé Beraud <hber...@redhat.com>
From 531db5d477abfaaa81d5b75e0656f1b33ed54885 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20Beraud?= <hber...@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 <hber...@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:
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to