summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-07-11 17:30:20 +0000
committerngie <ngie@FreeBSD.org>2016-07-11 17:30:20 +0000
commitce0b97bf548c61902402240fa0316780ffe3b020 (patch)
tree61319169311057ca5b8ce8096ff8ddee820c2e65 /usr.bin
parent0ddba37c51521e5d2e7ada2ebd4619a703477036 (diff)
downloadFreeBSD-src-ce0b97bf548c61902402240fa0316780ffe3b020.zip
FreeBSD-src-ce0b97bf548c61902402240fa0316780ffe3b020.tar.gz
MFC r302326:
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.
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