]> xenbits.xensource.com Git - libvirt.git/commit
virt-aa-helper: test: check for expected profile content
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 21 Mar 2018 11:28:39 +0000 (12:28 +0100)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Fri, 23 Mar 2018 06:14:58 +0000 (07:14 +0100)
commit2b717929a841c84e5244a117b4651337d3a6ea30
tree6ea435d964d6b605aa399bc08f1271dd8b24361a
parent094af02b8260617d5940d0c957b791b268bb82e3
virt-aa-helper: test: check for expected profile content

So far the virt-aa-helper tests only checked the return code and thereby
catched aborts like issues failing to parse the XML. But there is one
category of virt-aa-helper issues so far untested - not generating the
expected rule.

This adds a basic grep based checks after each test to match against the
rule that is expected to be added by the test.

Acked-by: Jamie Strandboge <jamie@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
tests/virt-aa-helper-test