]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/shell: Print unified diffs in dump errors
authorPhil Sutter <phil@nwl.cc>
Fri, 7 Jun 2019 17:25:27 +0000 (19:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jun 2019 22:04:24 +0000 (00:04 +0200)
Non-unified format is useful only if the expected output is printed as
well, which is not the case.

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

index 81ee0cdd62f4a6a9acc0a359699ed3fec6bb16b1..632cccee0af299418370e1cde5b37d6b334a94ed 100755 (executable)
@@ -106,7 +106,7 @@ do
                dumpfile="${dumppath}/$(basename ${testfile}).nft"
                rc_spec=0
                if [ "$rc_got" -eq 0 ] && [ -f ${dumpfile} ]; then
-                       test_output=$(${DIFF} ${dumpfile} <($NFT list ruleset) 2>&1)
+                       test_output=$(${DIFF} -u ${dumpfile} <($NFT list ruleset) 2>&1)
                        rc_spec=$?
                fi