test-resolve.t: use redirection to /dev/null instead of grep -q
authorAugie Fackler <raf@durin42.com>
Fri, 17 Oct 2014 11:01:05 -0400
changeset 23025 b8dd8432395d
parent 23024 ec36969497de
child 23026 fe80fdf68ba7
test-resolve.t: use redirection to /dev/null instead of grep -q
tests/test-resolve.t
--- a/tests/test-resolve.t	Wed Oct 08 22:30:04 2014 -0700
+++ b/tests/test-resolve.t	Fri Oct 17 11:01:05 2014 -0400
@@ -118,8 +118,8 @@
   warning: conflicts during merge.
   merging file2 incomplete! (edit conflicts, then use 'hg resolve --mark')
   [1]
-  $ grep -q '<<<' file1
-  $ grep -q '<<<' file2
+  $ grep '<<<' file1 > /dev/null
+  $ grep '<<<' file2 > /dev/null
 
 resolve <file> should re-merge file
   $ echo resolved > file1
@@ -127,7 +127,7 @@
   warning: conflicts during merge.
   merging file1 incomplete! (edit conflicts, then use 'hg resolve --mark')
   [1]
-  $ grep -q '<<<' file1
+  $ grep '<<<' file1 > /dev/null
 
 resolve <file> should do nothing if 'file' was marked resolved
   $ echo resolved > file1