changeset 5027:17d71a79a257

Fix bashism and remove useless use of cat.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 29 Jul 2007 18:53:09 +0200
parents 48ebd6a83994
children 36e8983fe44d
files tests/test-mq
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq	Sat Jul 28 20:15:54 2007 +0200
+++ b/tests/test-mq	Sun Jul 29 18:53:09 2007 +0200
@@ -342,7 +342,7 @@
 echo a > alexander
 hg add alexander
 hg qnew -f --git addalexander
-cat .hg/patches/addalexander | grep diff
+grep diff .hg/patches/addalexander
 
 echo % create a git binary patch
 cat > writebin.py <<EOF
@@ -355,11 +355,11 @@
 python "$TESTDIR/md5sum.py" bucephalus
 hg add bucephalus
 hg qnew -f --git addbucephalus
-cat .hg/patches/addbucephalus | grep diff
+grep diff .hg/patches/addbucephalus
 
 echo % check binary patches can be popped and pushed
 hg qpop
-! test -f bucephalus || echo % bucephalus should not be there
+test -f bucephalus && echo % bucephalus should not be there
 hg qpush
 test -f bucephalus || echo % bucephalus should be there
 python "$TESTDIR/md5sum.py" bucephalus