summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing
diff options
context:
space:
mode:
authorEric Jallot <ejallot@gmail.com>2019-10-08 20:06:32 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-08 20:38:01 +0200
commitd55bdfac89610474115fdc976d28d5f23b06c32e (patch)
treeaef63249f434cf1e135c75a152a435f9e657910c /tests/shell/testcases/listing
parent1b585afb6f114050d21f0ac5daecdde298cf480f (diff)
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 <ejallot@gmail.com> Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/shell/testcases/listing')
-rwxr-xr-xtests/shell/testcases/listing/0015dynamic_02
-rwxr-xr-xtests/shell/testcases/listing/0017objects_02
-rwxr-xr-xtests/shell/testcases/listing/0018data_02
-rwxr-xr-xtests/shell/testcases/listing/0019set_02
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/shell/testcases/listing/0015dynamic_0 b/tests/shell/testcases/listing/0015dynamic_0
index 5ddc4ad8..4ff74e32 100755
--- a/tests/shell/testcases/listing/0015dynamic_0
+++ b/tests/shell/testcases/listing/0015dynamic_0
@@ -12,7 +12,7 @@ EXPECTED="table ip filter {
set -e
-$NFT -f - <<< $EXPECTED
+$NFT -f - <<< "$EXPECTED"
GET="$($NFT list set ip filter test_set)"
if [ "$EXPECTED" != "$GET" ] ; then
diff --git a/tests/shell/testcases/listing/0017objects_0 b/tests/shell/testcases/listing/0017objects_0
index 14d61438..8a586e80 100755
--- a/tests/shell/testcases/listing/0017objects_0
+++ b/tests/shell/testcases/listing/0017objects_0
@@ -8,7 +8,7 @@ EXPECTED="table inet filter {
set -e
-$NFT -f - <<< $EXPECTED
+$NFT -f - <<< "$EXPECTED"
$NFT flush map inet filter countermap
GET="$($NFT list map inet filter countermap)"
diff --git a/tests/shell/testcases/listing/0018data_0 b/tests/shell/testcases/listing/0018data_0
index 767fe13a..544b6bf5 100755
--- a/tests/shell/testcases/listing/0018data_0
+++ b/tests/shell/testcases/listing/0018data_0
@@ -8,7 +8,7 @@ EXPECTED="table inet filter {
set -e
-$NFT -f - <<< $EXPECTED
+$NFT -f - <<< "$EXPECTED"
$NFT flush map inet filter ipmap
GET="$($NFT list map inet filter ipmap)"
diff --git a/tests/shell/testcases/listing/0019set_0 b/tests/shell/testcases/listing/0019set_0
index 04eb0faf..54a8a064 100755
--- a/tests/shell/testcases/listing/0019set_0
+++ b/tests/shell/testcases/listing/0019set_0
@@ -8,7 +8,7 @@ EXPECTED="table inet filter {
set -e
-$NFT -f - <<< $EXPECTED
+$NFT -f - <<< "$EXPECTED"
$NFT flush set inet filter ipset
GET="$($NFT list set inet filter ipset)"