From 699d78bcfe99f64dea473d91c901c833dc02d936 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 4 Feb 2014 11:28:29 -0800 Subject: [PATCH] Make the test harness output file diffs on failure --- tests/test.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test.fish b/tests/test.fish index 2b796ef8d..7573b4001 100755 --- a/tests/test.fish +++ b/tests/test.fish @@ -60,13 +60,15 @@ for i in *.in if diff tmp.out $template_out >/dev/null else set res fail - echo Output differs for file $i + echo Output differs for file $i. Diff follows: + diff tmp.out $template_out end if diff tmp.err $template_err >/dev/null else set res fail - echo Error output differs for file $i + echo Error output differs for file $i. Diff follows: + diff tmp.err $template_err end if test (cat tmp.status) = (cat $template_status)