2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

parser: fix if condition at the bottom of equality.sh

The lack of a space after $testtype is a syntax error and was causing the
equality tests on Ubuntu Xenial to be silently skipped and marked PASS.

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee 2025-05-05 10:12:29 -07:00
parent 87e5a34252
commit 17ee87ad6b

View File

@ -1223,7 +1223,7 @@ done
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
if [ $# -eq 0 -o -z $testtype] ; then if [ $# -eq 0 -o -z "$testtype" ] ; then
run_tests "$@" run_tests "$@"
exit $? exit $?
fi fi