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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to