Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2016 17:30:20 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r302582 - stable/10/usr.bin/lastcomm/tests
Message-ID:  <201607111730.u6BHUKb0093445@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Jul 11 17:30:20 2016
New Revision: 302582
URL: https://svnweb.freebsd.org/changeset/base/302582

Log:
  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.

Modified:
  stable/10/usr.bin/lastcomm/tests/legacy_test.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/lastcomm/tests/legacy_test.sh
==============================================================================
--- stable/10/usr.bin/lastcomm/tests/legacy_test.sh	Mon Jul 11 17:11:18 2016	(r302581)
+++ stable/10/usr.bin/lastcomm/tests/legacy_test.sh	Mon Jul 11 17:30:20 2016	(r302582)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607111730.u6BHUKb0093445>