changeset 15515:21766d5531cb

tests: remove hacks for testing if file or directory exists
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 16 Nov 2011 03:45:14 +0100
parents dd856380cce3
children 10f302f5e9f6
files tests/test-backout.t tests/test-bad-pull.t
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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