diff tests/test-push-http.t @ 13405:682edefe7dbb

tests: use printenv.py where it is - don't copy it around
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 15 Feb 2011 02:17:43 +0100
parents 31a256ffe9e5
children 1e497df514e2
line wrap: on
line diff
--- a/tests/test-push-http.t	Tue Feb 15 01:05:32 2011 +0100
+++ b/tests/test-push-http.t	Tue Feb 15 02:17:43 2011 +0100
@@ -1,5 +1,4 @@
 
-  $ cp "$TESTDIR"/printenv.py .
   $ hg init test
   $ cd test
   $ echo a > a
@@ -53,7 +52,7 @@
 
   $ echo 'allow_push = *' >> .hg/hgrc
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'changegroup = python ../printenv.py changegroup 0' >> .hg/hgrc
+  $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup 0' >> .hg/hgrc
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes