selftests: netfilter: nft_audit.sh: add more skip checks
authorFlorian Westphal <fw@strlen.de>
Thu, 18 Apr 2024 15:27:39 +0000 (17:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Apr 2024 03:10:51 +0000 (20:10 -0700)
commit1f50b0fef936abe55ef9da56b27cb9567dd1a37b
tree99e39eb55deefd4030835321b9529ac0395005f7
parent4d7730154ed542d6a502a7ed0778069fafa2461f
selftests: netfilter: nft_audit.sh: add more skip checks

This testcase doesn't work if auditd is running, audit_logread will not
receive any data in that case.

Add a nftables feature test for the reset keyword and skip this test
if that fails.

While at it, do a few minor shellcheck cleanups.

Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20240418152744.15105-12-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/netfilter/nft_audit.sh