Mercurial > hg
diff tests/test-interhg.t @ 17017:953faba28e91
tests: prepare get-with-headers.py for MSYS
get-with-headers.py took the http GET parameter as a command line parameter
that had to start with '/'. MSYS on windows will mangle such paths.
Instead of applying a workaround everywhere (such as an extra '/') we let
get-with-headers.py add the mandatory '/'. That is consistent with the
url path handling in the Mercurial url class.
A few tests sent 'GET ?cmd=...' which is invalid. They will now send 'GET
/?cmd=...'.
This will not enable any tests for being run on windows - only remove one
reason they were disabled.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 21 Jun 2012 03:05:02 +0200 |
parents | f2719b387380 |
children |
line wrap: on
line diff
--- a/tests/test-interhg.t Wed Jun 20 23:41:21 2012 +0200 +++ b/tests/test-interhg.t Thu Jun 21 03:05:02 2012 +0200 @@ -23,7 +23,7 @@ log - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/' | grep bts + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '' | grep bts <td class="description"><a href="/rev/1b0e7ece6bd6"><a href="http://bts.example.org/issue123">Issue123</a>: fixed the <i class="x">bug</i>!</a><span class="branchhead">default</span> <span class="tag">tip</span> </td> errors