tests: remove hacks for testing if file or directory exists
authorMads Kiilerich <mads@kiilerich.com>
Wed, 16 Nov 2011 03:45:14 +0100
changeset 15515 21766d5531cb
parent 15514 dd856380cce3
child 15516 10f302f5e9f6
tests: remove hacks for testing if file or directory exists
tests/test-backout.t
tests/test-bad-pull.t
--- a/tests/test-backout.t	Wed Nov 16 03:45:06 2011 +0100
+++ b/tests/test-backout.t	Wed Nov 16 03:45:14 2011 +0100
@@ -48,8 +48,8 @@
   $ hg backout -d '3 0' --merge tip --tool=true
   removing a
   changeset 3:7f6d0f120113 backs out changeset 2:de31bdc76c0d
-  $ cat a 2>/dev/null || echo cat: a: No such file or directory
-  cat: a: No such file or directory
+  $ test -f a
+  [1]
 
 across branch
 
--- a/tests/test-bad-pull.t	Wed Nov 16 03:45:06 2011 +0100
+++ b/tests/test-bad-pull.t	Wed Nov 16 03:45:14 2011 +0100
@@ -4,8 +4,8 @@
   abort: error: Connection refused
   [255]
 
-  $ test -d copy || echo copy: No such file or directory
-  copy: No such file or directory
+  $ test -d copy
+  [1]
 
   $ cat > dumb.py <<EOF
   > import BaseHTTPServer, SimpleHTTPServer, os, signal