]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/shell: Use custom nft binary for ruleset listing
authorPhil Sutter <phil@nwl.cc>
Thu, 15 Mar 2018 22:58:38 +0000 (23:58 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 16 Mar 2018 08:58:39 +0000 (09:58 +0100)
Don't assume the system's nft binary is able to correctly list rulesets
generated in tests.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/run-tests.sh

index d2f3e96b33b24503ad71958692787ed342c60d1b..431d55590a7df8ede364dd8dd14cd255da155787 100755 (executable)
@@ -110,7 +110,7 @@ do
                dumppath="$(dirname ${testfile})/dumps"
                dumpfile="${dumppath}/$(basename ${testfile}).nft"
                if [ "$rc_got" == "${POSITIVE_RET}" ] && [ -f ${dumpfile} ]; then
-                       test_output=$(${DIFF} ${dumpfile} <(nft list ruleset) 2>&1)
+                       test_output=$(${DIFF} ${dumpfile} <($NFT list ruleset) 2>&1)
                        rc_spec=$?
                fi