# HG changeset patch # User Alexis S. L. Carvalho # Date 1161208070 10800 # Node ID 33b6c81936526ae0e44684947b3a5f35f5d8342b # Parent 5155fa27f514860381e5247d439e7cbc0b325dae Don't use test -e in tests - sh doesn't like it on Solaris diff --git a/tests/test-acl b/tests/test-acl --- a/tests/test-acl +++ b/tests/test-acl @@ -9,7 +9,7 @@ do_push() echo 'hgrc = """' sed -e 1,2d b/.hg/hgrc echo '"""' - if [ -e acl.config ]; then + if test -f acl.config; then echo 'acl.config = """' cat acl.config echo '"""' diff --git a/tests/test-bad-pull b/tests/test-bad-pull --- a/tests/test-bad-pull +++ b/tests/test-bad-pull @@ -2,7 +2,7 @@ hg clone http://localhost:20059/ copy echo $? -test -e copy || echo copy: No such file or directory +test -d copy || echo copy: No such file or directory cat > dumb.py </dev/null || echo "sub/b not present" -test -e sub || echo "sub not present" +test -d sub || echo "sub not present" true diff --git a/tests/test-static-http b/tests/test-static-http --- a/tests/test-static-http +++ b/tests/test-static-http @@ -2,7 +2,7 @@ http_proxy= hg clone static-http://localhost:20059/ copy echo $? -test -e copy || echo copy: No such file or directory +test -d copy || echo copy: No such file or directory # This server doesn't do range requests so it's basically only good for # one pull