diff tests/test-command-template @ 9382:829ac0af66a4

test-command-template: Don't diff files with same content Solaris diff will report "No differences encountered" on stdout
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 22 Aug 2009 15:36:52 +0200
parents 5b7da468531b
children f04d17912441
line wrap: on
line diff
--- a/tests/test-command-template	Sat Aug 22 10:50:29 2009 +0200
+++ b/tests/test-command-template	Sat Aug 22 15:36:52 2009 +0200
@@ -43,15 +43,15 @@
 echo '#  normal'
 hg log > log.out
 hg log --style default > style.out
-diff -u log.out style.out
+cmp log.out style.out || diff -u log.out style.out
 echo '#  verbose'
 hg log -v > log.out
 hg log -v --style default > style.out
-diff -u log.out style.out
+cmp log.out style.out || diff -u log.out style.out
 echo '#  debug'
 hg log --debug > log.out
 hg log --debug --style default > style.out
-diff -u log.out style.out
+cmp log.out style.out || diff -u log.out style.out
 
 echo '# revision with no copies (used to print a traceback)'
 hg tip -v --template '\n'