From e10356a4acd2dac08defcb5ce902bed1b86aab7d Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Fri, 1 May 2020 23:09:49 +0200 Subject: 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 --- tests/shell/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)) -- cgit v1.2.3