Skip to contentSkip to conversation

tests: shell: fix spurious errors in terse listing in json

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 11, 2023 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: fix spurious errors in terse listing in json

Sometimes table handle becomes 192, which makes this test fail. Check for 192.168 instead to make sure terse listing works fine instead.

---
 tests/shell/testcases/listing/0021ruleset_json_terse_0 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/shell/testcases/listing/0021ruleset_json_terse_0 +1 -1
index c739ac3f29d0..6be41b8635ae 100755
@@ -6,7 +6,7 @@ $NFT add chain ip test c
 $NFT add set ip test s { type ipv4_addr\; }
 $NFT add element ip test s { 192.168.3.4, 192.168.3.5 }
 
-if $NFT -j -t list ruleset | grep '192'
+if $NFT -j -t list ruleset | grep '192\.168'
 then
 	exit 1
 fi
Signature · 1 line
2.30.2