[apparmor] [patch] regression tests: include complain mode arg in runtest
Steve Beattie
steve at nxnw.org
Thu Feb 2 02:25:33 UTC 2017
Hi,
When individual regression tests are run, a pseudo script for
reproducing the steps of the test are created in the created temporary
directory (but is not actually how the individual tests are run by the
harness). When support for complain-mode test profiles added, the extra
complain flag option was not added to the code that generates the
runtest script. This patch fixes the issue.
Nominated for 2.11, 2.10, and 2.9.
Signed-off-by: Steve Beattie <steve at nxnw.org>
---
tests/regression/apparmor/prologue.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/tests/regression/apparmor/prologue.inc
===================================================================
--- a/tests/regression/apparmor/prologue.inc
+++ b/tests/regression/apparmor/prologue.inc
@@ -146,7 +146,7 @@ genrunscript()
if [ "$retaintmpdir" = "true" ]
then
runfile=$tmpdir/runtest
- echo "$subdomain ${parser_args} $profile" > $runfile
+ echo "$subdomain ${parser_args} ${complainflag} $profile" > $runfile
echo -n "$testexec " >> $runfile
while [ $# -gt 0 ] ; do
echo -n "\"$1\" " >> $runfile
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170201/260f38f4/attachment.pgp>
More information about the AppArmor
mailing list