From f6ad1cbe1e9947d59331cedba89a52212d6cc285 Mon Sep 17 00:00:00 2001 From: Georgia Garcia Date: Thu, 11 May 2023 12:07:21 -0300 Subject: [PATCH] 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 --- tests/regression/apparmor/prologue.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/apparmor/prologue.inc b/tests/regression/apparmor/prologue.inc index 3bbea9b8e..d5b34b9e7 100755 --- a/tests/regression/apparmor/prologue.inc +++ b/tests/regression/apparmor/prologue.inc @@ -152,7 +152,7 @@ parser_supports() # $@: rules to test requires_parser_support() { - local res=$(parser_supports $@) + local res=$(parser_supports "$@") if [ "$res" != "true" ] ; then echo "$res. Skipping tests ..." exit 0