From 58386df4ae6d6481ff16700df232551da00205aa Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 22 Feb 2020 09:46:40 +0100 Subject: tests: shell: avoid spurious failure when running in host namespace Dump validation may fail: - tcp dport { 22, 23 } counter packets 0 bytes 0 + tcp dport { 22, 23 } counter packets 9 bytes 3400 ... which is normal on host namespace. Signed-off-by: Florian Westphal --- tests/shell/testcases/sets/0025anonymous_set_0 | 2 +- tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/shell/testcases/sets/0025anonymous_set_0 b/tests/shell/testcases/sets/0025anonymous_set_0 index 93a7c022..74777d8e 100755 --- a/tests/shell/testcases/sets/0025anonymous_set_0 +++ b/tests/shell/testcases/sets/0025anonymous_set_0 @@ -14,4 +14,4 @@ $NFT add rule t c ip daddr { \ } #set : tcp ports -$NFT add rule t c tcp dport { 22, 23 } counter +$NFT add rule t c meta oifname \"doesntexist\" tcp dport { 22, 23 } counter diff --git a/tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft b/tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft index 6204b00c..59636994 100644 --- a/tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft +++ b/tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft @@ -2,6 +2,6 @@ table ip t { chain c { type filter hook output priority filter; policy accept; ip daddr { 192.168.0.1, 192.168.0.2, 192.168.0.3 } - tcp dport { 22, 23 } counter packets 0 bytes 0 + oifname "doesntexist" tcp dport { 22, 23 } counter packets 0 bytes 0 } } -- cgit v1.2.3