changeset 33098:c4a20c9484e7

tests: avoid test failure for mangling path-like string by MSYS
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 27 Jun 2017 02:24:37 +0900
parents fce4ed2912bb
children 4a8db3538c39
files tests/test-extension.t
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]*">'