diff tests/test-locate.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 4134686b83e1
children 4fee1fd3de9a
line wrap: on
line diff
--- a/tests/test-locate.t	Tue Sep 21 12:41:24 2010 -0500
+++ b/tests/test-locate.t	Tue Sep 21 16:00:02 2010 -0500
@@ -22,12 +22,11 @@
 
   $ touch nottracked
 
-  $ hg locate a && echo locate succeeded || echo locate failed
+  $ hg locate a
   a
-  locate succeeded
 
-  $ hg locate NONEXISTENT && echo locate succeeded || echo locate failed
-  locate failed
+  $ hg locate NONEXISTENT
+  [1]
 
   $ hg locate
   a