From d55bdfac89610474115fdc976d28d5f23b06c32e Mon Sep 17 00:00:00 2001 From: Eric Jallot Date: Tue, 8 Oct 2019 20:06:32 +0200 Subject: tests: shell: fix failed tests due to missing quotes Add double quotes to protect newlines when using <<< redirection. See also commit b878cb7d83855. Signed-off-by: Eric Jallot Signed-off-by: Phil Sutter --- tests/shell/testcases/nft-f/0002rollback_rule_0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/shell/testcases/nft-f/0002rollback_rule_0') diff --git a/tests/shell/testcases/nft-f/0002rollback_rule_0 b/tests/shell/testcases/nft-f/0002rollback_rule_0 index 33e1212d..8a9ca84a 100755 --- a/tests/shell/testcases/nft-f/0002rollback_rule_0 +++ b/tests/shell/testcases/nft-f/0002rollback_rule_0 @@ -27,13 +27,13 @@ table ip t2 { } }" -$NFT -f - <<< $GOOD_RULESET +$NFT -f - <<< "$GOOD_RULESET" if [ $? -ne 0 ] ; then echo "E: unable to load good ruleset" >&2 exit 1 fi -$NFT -f - <<< $BAD_RULESET 2>/dev/null +$NFT -f - <<< "$BAD_RULESET" 2>/dev/null if [ $? -eq 0 ] ; then echo "E: bogus ruleset loaded?" >&2 exit 1 -- cgit v1.2.3