]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: fix name based checks with CONFIG_MODULES=n
authorFlorian Westphal <fw@strlen.de>
Tue, 7 Oct 2025 16:21:13 +0000 (18:21 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 9 Oct 2025 15:46:30 +0000 (17:46 +0200)
commit3f8ec2b8dbc7900f0d91adfafb0591602476d1b1
treeaa2e75c021d0760c63dff4274003090cb4a035b6
parent11b9415fd63d245b1a3230aa4f7cd1e2b0639ddd
tests: shell: fix name based checks with CONFIG_MODULES=n

Don't include a trailing space, its only there if nftables is a module:

  hook ingress device foo2 {
     0000000000 chain netdev t c [nf_tables]
  }

with CONFIG_NF_TABLES=y, this gets listed as:
'0000000000 chain netdev t c\n'.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/chains/netdev_chain_name_based_hook_0
tests/shell/testcases/flowtable/0016name_based_hook_0