path: root/tests/shell/testcases/sets/0031set_timeout_size_0
diff options
authorFlorian Westphal <>2018-06-08 14:41:08 +0200
committerFlorian Westphal <>2018-06-08 14:41:08 +0200
commitb878cb7d83855f4420791561b63aa4b96d73663a (patch)
tree645bab65243ebc9a259181c9d8495865e5882ed9 /tests/shell/testcases/sets/0031set_timeout_size_0
parentba6711f37e4c776e812e53c9a0d385a80ce2f15a (diff)
tests: shell: add quotes when using <<<-style here document
bash 4.3.30 removes newlines in RULESET when "" are omitted, which then causes nft -f to complain about invalid syntax. As a result, all test cases that use this here-doc style fail. Signed-off-by: Florian Westphal <>
Diffstat (limited to 'tests/shell/testcases/sets/0031set_timeout_size_0')
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/sets/0031set_timeout_size_0 b/tests/shell/testcases/sets/0031set_timeout_size_0
index 747d7dc7..514c503b 100755
--- a/tests/shell/testcases/sets/0031set_timeout_size_0
+++ b/tests/shell/testcases/sets/0031set_timeout_size_0
@@ -7,6 +7,6 @@ add rule x test set update ip saddr timeout 1d2h3m4s5ms @y
add rule x test set update ip daddr timeout 100ms @y"
set -e
-$NFT -f - <<< $RULESET
+$NFT -f - <<< "$RULESET"
$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s5ms }'
$NFT list chain x test | grep -q 'update @y { ip daddr timeout 100ms }'