]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: dump generated use new nft tool
authorMichael Braun <michael-dev@fami-braun.de>
Fri, 1 May 2020 21:09:49 +0000 (23:09 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 May 2020 21:56:03 +0000 (23:56 +0200)
Instead of using an (possibly outdated) system nft to generate dumps,
use the newly build tool.

This fixes the dump output being corrupted if the system tool does
not support parsing new features.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/run-tests.sh

index 2c4154898805a88002248c62d12321e7d538db5a..26f8f46d95a0bf416ffdd7bdee8837e1010bc72c 100755 (executable)
@@ -122,7 +122,7 @@ do
 
                        if [ "$DUMPGEN" == "y" ] && [ "$rc_got" == 0 ] && [ ! -f "${dumpfile}" ]; then
                                mkdir -p "${dumppath}"
-                               nft list ruleset > "${dumpfile}"
+                               $NFT list ruleset > "${dumpfile}"
                        fi
                else
                        ((failed++))