]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: fix spurious errors in terse listing in json
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 11 Jun 2023 19:13:38 +0000 (21:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 11 Jun 2023 19:15:15 +0000 (21:15 +0200)
Sometimes table handle becomes 192, which makes this test fail. Check
for 192.168 instead to make sure terse listing works fine instead.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/listing/0021ruleset_json_terse_0

index c739ac3f29d0d2c613c1e9ac1c977452eeb392c9..6be41b8635ae231a368b76828696427a1782d53e 100755 (executable)
@@ -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