diff options
author | Michael Braun <michael-dev@fami-braun.de> | 2020-05-01 23:09:49 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-05-01 23:56:03 +0200 |
commit | e10356a4acd2dac08defcb5ce902bed1b86aab7d (patch) | |
tree | 3b9a0e8829222cf7ac5c197a10ea0bef3a593ee7 /tests/shell/run-tests.sh | |
parent | d2d226e1709338c11307ef757f7561bf25693649 (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/shell/run-tests.sh')
-rwxr-xr-x | tests/shell/run-tests.sh | 2 |
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++)) |