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:
Georgia Garcia 2023-05-11 12:07:21 -03:00
parent 8a5e7227db
commit f6ad1cbe1e

View file

@ -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