tests/test-hgwebdir.t
changeset 32004 bd3cb917761a
parent 31769 594dd384803c
child 39470 17ca967e9fca
--- a/tests/test-hgwebdir.t	Fri Apr 14 00:03:30 2017 -0700
+++ b/tests/test-hgwebdir.t	Fri Mar 31 23:00:41 2017 -0400
@@ -1680,6 +1680,22 @@
 
   $ killdaemons.py
 
+  $ cat > paths.conf << EOF
+  > [paths]
+  > / = $root/a
+  > EOF
+  $ hg serve -p $HGPORT1 -d --pid-file hg.pid --webdir-conf paths.conf
+  $ cat hg.pid >> $DAEMON_PIDS
+
+  $ hg id http://localhost:$HGPORT1
+  71a89161f014
+
+  $ get-with-headers.py localhost:$HGPORT1 '' | grep 'index'
+  <meta name="robots" content="index, nofollow" />
+     <a href="/rev/71a89161f014">add index file</a>
+
+  $ killdaemons.py
+
 paths errors 1
 
   $ cat error-paths-1.log