[PATCH] test-static-http: adapt for Windows
Adrian Buehlmann
adrian at cadifra.com
Tue Jun 19 12:36:28 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340126935 -7200
# Node ID 4829e44d733b1f38b8293b035c8f276020668640
# Parent 52f5916f6afbc0957b8d916b38f2ee5e7fe743f9
test-static-http: adapt for Windows
diff --git a/tests/test-static-http.t b/tests/test-static-http.t
--- a/tests/test-static-http.t
+++ b/tests/test-static-http.t
@@ -1,8 +1,14 @@
$ "$TESTDIR/hghave" serve || exit 80
+#if windows
+ $ hg clone http://localhost:$HGPORT/ copy
+ abort: * (glob)
+ [255]
+#else
$ hg clone http://localhost:$HGPORT/ copy
abort: error: Connection refused
[255]
+#endif
$ test -d copy
[1]
@@ -66,7 +72,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
More information about the Mercurial-devel
mailing list