[apparmor] [PATCH 2/3] tests: Allow for the subdomain uservar to be defined by an env variable

Tyler Hicks tyhicks at canonical.com
Sat Jan 11 00:50:46 UTC 2014


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 <tyhicks at canonical.com>
---
 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




More information about the AppArmor mailing list