Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-diffs.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 | 7ba2b9435da9 |
line wrap: on
line diff
--- a/tests/test-hgweb-diffs.t Wed Jun 20 23:41:21 2012 +0200 +++ b/tests/test-hgweb-diffs.t Thu Jun 21 03:05:02 2012 +0200 @@ -23,7 +23,7 @@ revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rev/0' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -153,7 +153,7 @@ raw revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/raw-rev/0' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' 200 Script output follows @@ -178,7 +178,7 @@ diff removed file - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/b' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/b' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -283,7 +283,7 @@ revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rev/0' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -415,7 +415,7 @@ revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/raw-rev/0' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' 200 Script output follows @@ -442,7 +442,7 @@ diff removed file - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/a' 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -572,7 +572,7 @@ > EOF $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/raw-rev/0' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'raw-rev/0' 200 Script output follows Block: 1