mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
tests: add multi string support in requires_parser_support
By not having quotes in $@, the string splits by the whitespace. That prevents us from checking if the parser supports rules that have spaces in them. Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
@@ -152,7 +152,7 @@ parser_supports()
|
|||||||
# $@: rules to test
|
# $@: rules to test
|
||||||
requires_parser_support()
|
requires_parser_support()
|
||||||
{
|
{
|
||||||
local res=$(parser_supports $@)
|
local res=$(parser_supports "$@")
|
||||||
if [ "$res" != "true" ] ; then
|
if [ "$res" != "true" ] ; then
|
||||||
echo "$res. Skipping tests ..."
|
echo "$res. Skipping tests ..."
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user