summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/netns/0002loosecommands_0
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-05-17 13:57:23 +0200
committerFlorian Westphal <fw@strlen.de>2019-05-19 19:09:49 +0200
commitb7459b0c854fc7a0d6cd86151b81035a8edf8e63 (patch)
tree5d1bcf1c9570b55a1a3a9c243df52e7ed7aef027 /tests/shell/testcases/netns/0002loosecommands_0
parent7171f0bf8425a73d1043f53607f909f973b2a7e2 (diff)
tests: shell: avoid single-value anon sets
Future change is going to auto-change them to simple compare ops rather than lookup in set with only one element. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/netns/0002loosecommands_0')
-rwxr-xr-xtests/shell/testcases/netns/0002loosecommands_06
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/shell/testcases/netns/0002loosecommands_0 b/tests/shell/testcases/netns/0002loosecommands_0
index e6278280..abef50a1 100755
--- a/tests/shell/testcases/netns/0002loosecommands_0
+++ b/tests/shell/testcases/netns/0002loosecommands_0
@@ -30,9 +30,9 @@ netns_exec $NETNS_NAME "$NFT add table ip t"
netns_exec $NETNS_NAME "$NFT add chain ip t c"
netns_exec $NETNS_NAME "$NFT add chain ip t other"
netns_exec $NETNS_NAME "$NFT add set ip t s { type ipv4_addr; }"
-netns_exec $NETNS_NAME "$NFT add element ip t s {1.1.0.0 }"
+netns_exec $NETNS_NAME "$NFT add element ip t s {1.1.0.0}"
netns_exec $NETNS_NAME "$NFT add rule ip t c ct state new"
-netns_exec $NETNS_NAME "$NFT add rule ip t c udp dport { 12345 }"
+netns_exec $NETNS_NAME "$NFT add rule ip t c udp dport 12345"
netns_exec $NETNS_NAME "$NFT add rule ip t c ip saddr @s drop"
netns_exec $NETNS_NAME "$NFT add rule ip t c jump other"
@@ -44,7 +44,7 @@ RULESET="table ip t {
chain c {
ct state new
- udp dport { 12345 }
+ udp dport 12345
ip saddr @s drop
jump other
}