From: Phil Sutter Date: Fri, 7 Jun 2019 17:25:27 +0000 (+0200) Subject: tests/shell: Print unified diffs in dump errors X-Git-Tag: v0.9.1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e6730095930650a29bf09e30a0d71b9cac404f9;p=thirdparty%2Fnftables.git tests/shell: Print unified diffs in dump errors Non-unified format is useful only if the expected output is printed as well, which is not the case. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 81ee0cdd..632cccee 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -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