From 8c4882550ea13303e99348d642aff3a211d2045f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 Nov 1999 10:46:06 +0000 Subject: Run `diff -u' if the test fails. --- tests/cp/cp-mv-backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cp/cp-mv-backup') diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup index 1bad6de20..aaddaa25c 100755 --- a/tests/cp/cp-mv-backup +++ b/tests/cp/cp-mv-backup @@ -91,9 +91,9 @@ EOF sed 's/: x/:/' $expected-tmp |cat $expected-tmp - > $expected -# Uncomment this if you see a failure and want to try to diagnose it. -#diff -u $expected $actual 1>&2 - cmp $expected $actual || fail=1 +# Uncomment this if you see a failure and want to try to diagnose it. +test $fail = 1 && diff -u $expected $actual 1>&2 + exit $fail -- cgit v1.2.3-70-g09d2