Skip to contentSkip to conversation

tests: dump generated use new nft tool

PATCH Applied Michael Braun 2 participants 2 messages May 1, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/shell/run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/shell/run-tests.sh +1 -1
index 2c415489..26f8f46d 100755
@@ -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++))
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Michael Braun

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.

Applied, thanks.