]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: bogons: fix missing file name when logging
authorFlorian Westphal <fw@strlen.de>
Mon, 14 Jul 2025 18:37:57 +0000 (20:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Aug 2025 18:51:40 +0000 (20:51 +0200)
commit 85b9124868886fc1015ca3f37da5c138123819a4 upstream.

When the json is parsed without returning an error the test
fails.  Its supposed to log the name of the failed input which
it does for -f but not for -j -f.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/bogons/assert_failures

index 74e162ad476cc7f29b1199fda07ec40d556739d4..6be921279e9243999d7abf44af114c1dc4d3dd10 100755 (executable)
@@ -46,5 +46,5 @@ for f in $jsondir/*; do
        echo "Check json input $f"
        $NFT --check -j -f "$f" 2> "$tmpfile"
 
-       die_on_error $?
+       die_on_error $? "$f"
 done