Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2016 17:51:24 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302326 - head/usr.bin/lastcomm/tests
Message-ID:  <201607031751.u63HpOEI066806@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Jul  3 17:51:24 2016
New Revision: 302326
URL: https://svnweb.freebsd.org/changeset/base/302326

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

Modified:
  head/usr.bin/lastcomm/tests/legacy_test.sh

Modified: head/usr.bin/lastcomm/tests/legacy_test.sh
==============================================================================
--- head/usr.bin/lastcomm/tests/legacy_test.sh	Sun Jul  3 17:28:39 2016	(r302325)
+++ head/usr.bin/lastcomm/tests/legacy_test.sh	Sun Jul  3 17:51:24 2016	(r302326)
@@ -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?201607031751.u63HpOEI066806>