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>
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