tests: consistently use printenv.py the same MSYS/Windows-compatible way
authorMads Kiilerich <mads@kiilerich.com>
Thu, 21 Jun 2012 03:05:02 +0200
changeset 17018 e7fdfc702d9f
parent 17017 953faba28e91
child 17019 5d0538599428
tests: consistently use printenv.py the same MSYS/Windows-compatible way This will remove some reasons some tests are disabled on Windows.
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
--- 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