From: Michael Braun Date: Fri, 1 May 2020 21:09:49 +0000 (+0200) Subject: tests: dump generated use new nft tool X-Git-Tag: v0.9.5~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10356a4acd2dac08defcb5ce902bed1b86aab7d;p=thirdparty%2Fnftables.git 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 Signed-off-by: Pablo Neira Ayuso --- 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++))