changeset 17842:a029dac38942 stable

test-push-http: fix failing test on Windows The test failed due to problems with escaping. Fixes 8474be4412ca.
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 19 Oct 2012 15:03:35 +0200
parents e99a451270e6
children 66a613b59221
files tests/test-push-http.t
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-push-http.t	Fri Oct 19 01:38:53 2012 -0500
+++ b/tests/test-push-http.t	Fri Oct 19 15:03:35 2012 +0200
@@ -109,11 +109,13 @@
 
 expect push success, phase change failure
 
-  $ echo '[web]' > .hg/hgrc
-  $ echo 'push_ssl = false' >> .hg/hgrc
-  $ echo 'allow_push = *' >> .hg/hgrc
-  $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'prepushkey = python "$TESTDIR/printenv.py" prepushkey 1' >> .hg/hgrc
+  $ cat > .hg/hgrc <<EOF
+  > [web]
+  > push_ssl = false
+  > allow_push = *
+  > [hooks]
+  > prepushkey = python "$TESTDIR/printenv.py" prepushkey 1
+  > EOF
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes
@@ -127,7 +129,7 @@
 
 expect phase change success
 
-  $ echo 'prepushkey = python "$TESTDIR/printenv.py" prepushkey 0' >> .hg/hgrc
+  $ echo "prepushkey = python \"$TESTDIR/printenv.py\" prepushkey 0" >> .hg/hgrc
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes