The APPARMOR_PARSER environment variable can be used to set the
subdomain shell variable, which points to the parser to be used for
regression testing.

Signed-off-by: Tyler Hicks <[email protected]>
---
 tests/regression/apparmor/uservars.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/regression/apparmor/uservars.inc 
b/tests/regression/apparmor/uservars.inc
index a8647dc..51ccb4e 100644
--- a/tests/regression/apparmor/uservars.inc
+++ b/tests/regression/apparmor/uservars.inc
@@ -1,6 +1,9 @@
 # 1. Path to apparmor parser
 subdomain=../../../parser/apparmor_parser
 #subdomain=/sbin/apparmor_parser
+if [ -n "$APPARMOR_PARSER" ]; then
+       subdomain="$APPARMOR_PARSER"
+fi
 
 # 2. additional arguments to the apparmor parser
 parser_args="-q -K"
-- 
1.8.3.2


-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to