diff tests/test-push-http.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 bd41c19383db
line wrap: on
line diff
--- a/tests/test-push-http.t	Mon Jun 08 17:34:45 2015 -0500
+++ b/tests/test-push-http.t	Mon Jun 08 15:10:15 2015 -0500
@@ -58,8 +58,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
@@ -114,7 +114,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/
@@ -130,7 +130,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