]> 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)
committerFlorian Westphal <fw@strlen.de>
Mon, 14 Jul 2025 18:39:22 +0000 (20:39 +0200)
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