tests: avoid test failure for mangling path-like string by MSYS
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 27 Jun 2017 02:24:37 +0900
changeset 33098 c4a20c9484e7
parent 33097 fce4ed2912bb
child 33099 4a8db3538c39
tests: avoid test failure for mangling path-like string by MSYS
tests/test-extension.t
--- a/tests/test-extension.t	Sun Jun 25 08:20:05 2017 +0530
+++ b/tests/test-extension.t	Tue Jun 27 02:24:37 2017 +0900
@@ -131,7 +131,13 @@
 
 (check that revset predicate foo() and bar() are available)
 
-  $ REQUEST_METHOD='GET' PATH_INFO='/shortlog' SCRIPT_NAME='' \
+#if msys
+  $ PATH_INFO='//shortlog'
+#else
+  $ PATH_INFO='/shortlog'
+#endif
+  $ export PATH_INFO
+  $ REQUEST_METHOD='GET' SCRIPT_NAME='' \
   >     QUERY_STRING='rev=foo() and bar()' \
   >     SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \
   >     | grep '<a href="/rev/[0-9a-z]*">'