mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-11 12:02:02 +03:00
Run `diff -u' if the test fails.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user