[PATCH] tests: work around msys bash mangling of paths in test-mq.t

Mads Kiilerich mads at kiilerich.com
Tue Feb 26 14:34:54 CST 2013


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1361909090 -3600
# Node ID 89602c1c69202073a978eab5ce22f7a307c274ad
# Parent  2c246fef46d1f70b088284dafa00b0911920949f
tests: work around msys bash mangling of paths in test-mq.t

diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -1567,12 +1567,13 @@
   > wsgicgi.launch(app)
   > HGWEB
   $ . "$TESTDIR/cgienv"
+#if msys
+  $ PATH_INFO=//tags; export PATH_INFO
+#else
   $ PATH_INFO=/tags; export PATH_INFO
+#endif
   $ QUERY_STRING='style=raw'
-  $ python hgweb.cgi | grep -v ETag:
-  Status: 200 Script output follows\r (esc)
-  Content-Type: text/plain; charset=ascii\r (esc)
-  \r (esc)
+  $ python hgweb.cgi | grep ^tip
   tip	[0-9a-f]{40} (re)
 
   $ cd ..


More information about the Mercurial-devel mailing list