diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-06-11 21:13:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-06-11 21:15:15 +0200 |
commit | 9f5dc2b6297cb2507718222c7309516207420288 (patch) | |
tree | 41396903d396c049112e9f67f62e602939bfd5a0 | |
parent | 6ab0fd6c67dbccedb49209b94eb7f740dd32fd2a (diff) |
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 <pablo@netfilter.org>
-rwxr-xr-x | tests/shell/testcases/listing/0021ruleset_json_terse_0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/listing/0021ruleset_json_terse_0 b/tests/shell/testcases/listing/0021ruleset_json_terse_0 index c739ac3f..6be41b86 100755 --- a/tests/shell/testcases/listing/0021ruleset_json_terse_0 +++ b/tests/shell/testcases/listing/0021ruleset_json_terse_0 @@ -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 |