Patchwork tests: work around msys bash mangling of paths in test-mq.t

login
register
mail settings
Submitter Mads Kiilerich
Date Feb. 26, 2013, 8:34 p.m.
Message ID <89602c1c69202073a978.1361910894@mk-desktop>
Download mbox | patch
Permalink /patch/1059/
State Accepted
Commit 1663fe10f6937a2b2cce71a2455e6635bc854bd8
Headers show

Comments

Mads Kiilerich - Feb. 26, 2013, 8:34 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1361909090 -3600
# Node ID 89602c1c69202073a978eab5ce22f7a307c274ad
# Parent  2c246fef46d1f70b088284dafa00b0911920949f
tests: work around msys bash mangling of paths in test-mq.t
Mads Kiilerich - Feb. 28, 2013, 2:15 p.m.
On 02/26/2013 09:34 PM, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski@unity3d.com>
> # Date 1361909090 -3600
> # Node ID 89602c1c69202073a978eab5ce22f7a307c274ad
> # Parent  2c246fef46d1f70b088284dafa00b0911920949f
> tests: work around msys bash mangling of paths in test-mq.t
>

crewed

/Mads
Bryan O'Sullivan - Feb. 28, 2013, 9:54 p.m.
On Tue, Feb 26, 2013 at 12:34 PM, Mads Kiilerich <mads@kiilerich.com> wrote:

> tests: work around msys bash mangling of paths in test-mq.t
>

Ugh. Necessary evil, I guess.
Mads Kiilerich - Feb. 28, 2013, 11:54 p.m.
On 02/28/2013 10:54 PM, Bryan O'Sullivan wrote:
> On Tue, Feb 26, 2013 at 12:34 PM, Mads Kiilerich <mads@kiilerich.com 
> <mailto:mads@kiilerich.com>> wrote:
>
>     tests: work around msys bash mangling of paths in test-mq.t
>
>
> Ugh. Necessary evil, I guess. 

It will not be necessary with something like 
http://patchwork.serpentine.com/patch/914/ .

But yes, poor msys cannot know if /foo refer to a virtual file system 
path that has to be translated to driveletter+path format before being 
passed to a native windows app.

/Mads

Patch

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 ..