]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: Improve testing on apparmor python script 2848/head
authorHervé Beraud <hberaud@redhat.com>
Tue, 12 Feb 2019 22:47:25 +0000 (23:47 +0100)
committerHervé Beraud <hberaud@redhat.com>
Tue, 12 Feb 2019 22:58:43 +0000 (23:58 +0100)
Compare command output to already existing container-rules file

Signed-off-by: Hervé Beraud <hberaud@redhat.com>
.travis.yml

index 3754ab6d5dd1738edc8054119f34921b5f4ca995..2a320dec057c3756787f91f36ba8056d4087e977 100644 (file)
@@ -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: