tests: shell: fix spurious errors in terse listing in json
Pablo Neira Ayuso
maintainerPATCH 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.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- 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
@@ -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