summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-06-11 21:13:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-06-11 21:15:15 +0200
commit9f5dc2b6297cb2507718222c7309516207420288 (patch)
tree41396903d396c049112e9f67f62e602939bfd5a0 /tests
parent6ab0fd6c67dbccedb49209b94eb7f740dd32fd2a (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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/shell/testcases/listing/0021ruleset_json_terse_02
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