Mercurial > public > mercurial-scm > hg-stable
diff tests/test-status-color.t @ 12365:22f3353bcc36
tests: cleanup exit code handling in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 21 Sep 2010 16:00:02 -0500 |
parents | b63f6422d2a7 |
children | 05fffd665170 |
line wrap: on
line diff
--- a/tests/test-status-color.t Tue Sep 21 12:41:24 2010 -0500 +++ b/tests/test-status-color.t Tue Sep 21 16:00:02 2010 -0500 @@ -214,11 +214,10 @@ $ assert() { > hg status --color=always $1 > ../a > hg status --color=always $2 > ../b - > out=`diff ../a ../b` - > if [ $? -ne 0 ]; then + > if diff ../a ../b > /dev/null; then + > out=0 + > else > out=1 - > else - > out=0 > fi > if [ $3 -eq 0 ]; then > df="same"