From 0e6730095930650a29bf09e30a0d71b9cac404f9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 7 Jun 2019 19:25:27 +0200 Subject: 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 --- tests/shell/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell/run-tests.sh') 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 -- cgit v1.2.3