[PATCH] test-hgweb: adapt for windows
Adrian Buehlmann
adrian at cadifra.com
Tue Jun 19 13:15:40 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340129423 -7200
# Node ID 057bb5d7ce70e942d1f0a6f3d7e940250dc64f2e
# Parent 4a55e7c8958703ca95310e8b2f44357e55496547
test-hgweb: adapt for windows
/file triggers MSYS shell path magic, so I'm shielding them with //file
diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t
--- a/tests/test-hgweb.t
+++ b/tests/test-hgweb.t
@@ -15,7 +15,7 @@
manifest
- $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw')
+ $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/?style=raw')
200 Script output follows
@@ -23,7 +23,7 @@
-rw-r--r-- 4 foo
- $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw')
+ $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/da?style=raw')
200 Script output follows
@@ -33,14 +33,14 @@
plain file
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/foo?style=raw'
200 Script output follows
foo
should give a 404 - static file that does not exist
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/bogus'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//static/bogus'
404 Not Found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -104,7 +104,7 @@
should give a 404 - bad revision
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/spam/foo?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/spam/foo?style=raw'
404 Not Found
@@ -113,7 +113,7 @@
should give a 400 - bad command
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/foo?cmd=spam&style=raw'
400* (glob)
@@ -122,13 +122,13 @@
should give a 404 - file does not exist
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/bork?style=raw'
404 Not Found
error: bork at 2ef0ac749a14: not found in manifest
[1]
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/bork'
404 Not Found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -189,7 +189,7 @@
</html>
[1]
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//diff/tip/bork?style=raw'
404 Not Found
@@ -198,7 +198,7 @@
try bad style
- $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=foobar')
+ $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '//file/tip/?style=foobar')
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -306,7 +306,7 @@
static file
- $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT '/static/style-gitweb.css'
+ $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT '//static/style-gitweb.css'
200 Script output follows
body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
More information about the Mercurial-devel
mailing list