summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-07-03 17:51:24 +0000
committerngie <ngie@FreeBSD.org>2016-07-03 17:51:24 +0000
commit28a21dcf8ed3a5e6bb5aa6f84195f5865b013800 (patch)
tree07eeb9d741dd5994f93b6585db9d827ba9f9dd8a /usr.bin
parent269d6e15072ba2cb52db59b3f2ff0bad84ed7125 (diff)
downloadFreeBSD-src-28a21dcf8ed3a5e6bb5aa6f84195f5865b013800.zip
FreeBSD-src-28a21dcf8ed3a5e6bb5aa6f84195f5865b013800.tar.gz
Output the diffs to standard error when comparing the expected vs the
obtained output from lastcomm instead of just printing out a summary, e.g. "they differed". This will make failures with results more apparent when running kyua debug, kyua report-html, etc. Differential Revision: https://reviews.freebsd.org/D7079 (as part of a larger diff) MFC after: 1 week Approved by: re (gjb) Reviewed by: cem Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lastcomm/tests/legacy_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lastcomm/tests/legacy_test.sh b/usr.bin/lastcomm/tests/legacy_test.sh
index 35ef78b..c7da326 100644
--- a/usr.bin/lastcomm/tests/legacy_test.sh
+++ b/usr.bin/lastcomm/tests/legacy_test.sh
@@ -14,7 +14,7 @@ check()
shift
# Remove tty field, which varies between systems.
awk '{$4 = ""; print}' |
- if diff -q - $1
+ if diff -a - $1 >&2
then
echo "ok $NUM"
else
OpenPOWER on IntegriCloud