changeset 17018:e7fdfc702d9f

tests: consistently use printenv.py the same MSYS/Windows-compatible way This will remove some reasons some tests are disabled on Windows.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 21 Jun 2012 03:05:02 +0200
parents 953faba28e91
children 5d0538599428
files tests/printenv.py tests/test-bundle.t tests/test-http.t tests/test-https.t tests/test-push-http.t tests/test-ssh.t tests/test-static-http.t
diffstat 7 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tests/printenv.py	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/printenv.py	Thu Jun 21 03:05:02 2012 +0200
@@ -3,7 +3,7 @@
 # put something like this in the repo .hg/hgrc:
 #
 #     [hooks]
-#     changegroup = python "$TESTDIR"/printenv.py <hookname> [exit] [output]
+#     changegroup = python "$TESTDIR/printenv.py" <hookname> [exit] [output]
 #
 #   - <hookname> is a mandatory argument (e.g. "changegroup")
 #   - [exit] is the exit code of the hook (default: 0)
--- a/tests/test-bundle.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-bundle.t	Thu Jun 21 03:05:02 2012 +0200
@@ -206,7 +206,7 @@
 Pull ../full.hg into empty (with hook)
 
   $ echo "[hooks]" >> .hg/hgrc
-  $ echo "changegroup = python \"$TESTDIR\"/printenv.py changegroup" >> .hg/hgrc
+  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc
 
 doesn't work (yet ?)
 
--- a/tests/test-http.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-http.t	Thu Jun 21 03:05:02 2012 +0200
@@ -93,7 +93,7 @@
 
   $ cd copy-pull
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup' >> .hg/hgrc
+  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc
   $ hg pull
   pulling from http://localhost:$HGPORT1/
   searching for changes
--- a/tests/test-https.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-https.t	Thu Jun 21 03:05:02 2012 +0200
@@ -137,7 +137,7 @@
 
   $ cd copy-pull
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo "changegroup = python '$TESTDIR'/printenv.py changegroup" >> .hg/hgrc
+  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc
   $ hg pull
   warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting)
   pulling from https://localhost:$HGPORT/
--- a/tests/test-push-http.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-push-http.t	Thu Jun 21 03:05:02 2012 +0200
@@ -55,7 +55,7 @@
 
   $ echo 'allow_push = *' >> .hg/hgrc
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'changegroup = python "$TESTDIR"/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
--- a/tests/test-ssh.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-ssh.t	Thu Jun 21 03:05:02 2012 +0200
@@ -14,7 +14,7 @@
   > uncompressed = True
   > 
   > [hooks]
-  > changegroup = python "$TESTDIR"/printenv.py changegroup-in-remote 0 ../dummylog
+  > changegroup = python "$TESTDIR/printenv.py" changegroup-in-remote 0 ../dummylog
   > EOF
   $ cd ..
 
@@ -70,7 +70,7 @@
   checking files
   2 files, 1 changesets, 2 total revisions
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup-in-local 0 ../dummylog' >> .hg/hgrc
+  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup-in-local 0 ../dummylog" >> .hg/hgrc
 
 empty default pull
 
--- a/tests/test-static-http.t	Thu Jun 21 03:05:02 2012 +0200
+++ b/tests/test-static-http.t	Thu Jun 21 03:05:02 2012 +0200
@@ -66,7 +66,7 @@
   $ rm .hg/cache/*
   $ cd ../local
   $ echo '[hooks]' >> .hg/hgrc
-  $ echo 'changegroup = python "$TESTDIR"/printenv.py changegroup' >> .hg/hgrc
+  $ echo "changegroup = python \"$TESTDIR/printenv.py\" changegroup" >> .hg/hgrc
   $ hg pull
   pulling from static-http://localhost:$HGPORT/remote
   searching for changes