]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: regression: fix bogus error due to bash
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 23 Nov 2014 21:05:12 +0000 (22:05 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Nov 2014 11:53:40 +0000 (12:53 +0100)
This suppresses several superfluous errors:

 any/meta.t: ERROR: line 168: nft add rule ip test-ip4 input meta iifgroup {11,33}: This rule should not have failed.
 any/meta.t: ERROR: line 178: nft add rule ip test-ip4 input meta oifgroup {11,33}: This rule should not have failed.
 ip/masquerade.t: ERROR: line 23: nft add rule ip4 test-ip4 output tcp dport {1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade: This rule should not have failed.
 ip6/masquerade.t: ERROR: line 23: nft add rule ip6 test-ip6 output tcp dport {1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade: This rule should not have failed.

This needs a space before the list of elements in the set, otherwise
bash here misinterprets the set.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/regression/any/meta.t
tests/regression/ip/masquerade.t
tests/regression/ip6/masquerade.t

index ba6756dcfcceb2e9231cc7192db67d8d8c8b4a13..b3f91c92db6b6d6b35cd88b602f2758337d09d82 100644 (file)
@@ -165,7 +165,7 @@ meta iifgroup default;ok;iifgroup default
 meta iifgroup != default;ok;iifgroup != default
 meta iifgroup {default};ok;;iifgroup {default}
 - meta iifgroup != {default};ok
-meta iifgroup {11,33};ok;oifgroup {11,33}
+meta iifgroup { 11,33};ok
 meta iifgroup {11-33};ok
 - meta iifgroup != {11,33};ok
 - meta iifgroup != {11-33};ok
@@ -175,7 +175,7 @@ meta oifgroup default;ok;oifgroup default
 meta oifgroup != default;ok;oifgroup != default
 meta oifgroup {default};ok;oifgroup {default}
 - meta oifgroup != {default};ok
-meta oifgroup {11,33};ok;oifgroup {11,33}
+meta oifgroup { 11,33};ok
 meta oifgroup {11-33};ok
 - meta oifgroup != {11,33};ok
 - meta oifgroup != {11-33};ok
index c2840b0bce45d41dd84b9c75d0c7d995eede7ad9..3c952c09301fe257823f5a094f0db1861421db70 100644 (file)
@@ -20,6 +20,6 @@ tcp sport 22 masquerade accept;fail
 ip saddr 10.1.1.1 masquerade drop;fail
 
 # masquerade with sets
-tcp dport {1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade;ok
+tcp dport { 1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade;ok
 ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 masquerade;ok;ip daddr >= 10.0.0.0 ip daddr <= 10.2.3.4 udp dport 53 counter packets 0 bytes 0 masquerade
 iifname eth0 ct state new,established tcp dport vmap {22 : drop, 222 : drop } masquerade;ok
index c0f8b87d84f9f87d589cb9bdab0f312f36f17e21..175b318c14bed73f8196d13da600710f13ac005d 100644 (file)
@@ -20,6 +20,6 @@ tcp sport 22 masquerade accept;fail
 ip6 saddr ::1 masquerade drop;fail
 
 # masquerade with sets
-tcp dport {1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade;ok
+tcp dport { 1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade;ok
 ip6 daddr fe00::1-fe00::200 udp dport 53 counter packets 0 bytes 0 masquerade;ok;ip6 daddr >= fe00::1 ip6 daddr <= fe00::200 udp dport 53 counter packets 0 bytes 0 masquerade
 iifname eth0 ct state new,established tcp dport vmap {22 : drop, 222 : drop } masquerade;ok