Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-filelog.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 | 1ae119269ddc |
line wrap: on
line diff
--- a/tests/test-hgweb-filelog.t Wed Jun 20 23:41:21 2012 +0200 +++ b/tests/test-hgweb-filelog.t Thu Jun 21 03:05:02 2012 +0200 @@ -109,7 +109,7 @@ tip - two revisions - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/a') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -210,7 +210,7 @@ second version - two revisions - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/3/a') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -311,7 +311,7 @@ first deleted - one revision - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/2/a') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -407,7 +407,7 @@ first version - one revision - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/1/a') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -503,7 +503,7 @@ before addition - error - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/0/a') 404 Not Found <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -567,7 +567,7 @@ should show base link, use spartan because it shows it - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/c?style=spartan') 200 Script output follows <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> @@ -676,7 +676,7 @@ rss log - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rss-log/tip/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rss-log/tip/a') 200 Script output follows <?xml version="1.0" encoding="ascii"?> @@ -707,7 +707,7 @@ atom log - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/atom-log/tip/a') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'atom-log/tip/a') 200 Script output follows <?xml version="1.0" encoding="ascii"?>