diff tests/test-push-http-bundle1.t @ 25478:d19787db6fe0

tests: simplify printenv calls Make printenv executable so that we don't need python, TESTDIR, or quoting.
author Matt Mackall <mpm@selenic.com>
date Mon, 08 Jun 2015 15:10:15 -0500
parents 8c14f87bd0ae
children 59c410db8c68
line wrap: on
line diff
--- a/tests/test-push-http-bundle1.t	Mon Jun 08 17:34:45 2015 -0500
+++ b/tests/test-push-http-bundle1.t	Mon Jun 08 15:10:15 2015 -0500
@@ -68,8 +68,8 @@
 
   $ echo 'allow_push = *' >> .hg/hgrc
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup 0" >> .hg/hgrc
-  $ echo "pushkey = python \"$TESTDIR/printenv.py\" pushkey 0" >> .hg/hgrc
+  $ echo "changegroup = printenv.py changegroup 0" >> .hg/hgrc
+  $ echo "pushkey = printenv.py pushkey 0" >> .hg/hgrc
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes
@@ -121,7 +121,7 @@
   > push_ssl = false
   > allow_push = *
   > [hooks]
-  > prepushkey = python "$TESTDIR/printenv.py" prepushkey 1
+  > prepushkey = printenv.py prepushkey 1
   > EOF
   $ req
   pushing to http://localhost:$HGPORT/
@@ -134,7 +134,7 @@
 
 expect phase change success
 
-  $ echo "prepushkey = python \"$TESTDIR/printenv.py\" prepushkey 0" >> .hg/hgrc
+  $ echo "prepushkey = printenv.py prepushkey 0" >> .hg/hgrc
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes