summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Braun <michael-dev@fami-braun.de>2020-05-01 23:09:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-05-01 23:56:03 +0200
commite10356a4acd2dac08defcb5ce902bed1b86aab7d (patch)
tree3b9a0e8829222cf7ac5c197a10ea0bef3a593ee7 /tests
parentd2d226e1709338c11307ef757f7561bf25693649 (diff)
tests: dump generated use new nft tool
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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/shell/run-tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh
index 2c415489..26f8f46d 100755
--- a/tests/shell/run-tests.sh
+++ b/tests/shell/run-tests.sh
@@ -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++))