Mercurial > hg
comparison tests/test-basic.t @ 30986:f07ca071a058
runtests: set web.ipv6 if we use IPv6
As explained by the previous patch, we need to set "web.ipv6=True" if we
decide to use IPv6. Otherwise "hg serve" will still try to listen on IPv4.
This patch makes it so by appending web.ipv6 to "extra configs".
This patch was tested in a Linux system with IPv6, by the following steps:
1. Change hgweb/server.py temporarily to write a file if
IPv6HTTPServer.__init__ is called.
2. run-tests.py -l --keep-tmpdir test-serve.t
3. Check the generated .hgrc, make sure it sets web.ipv6=1.
4. Check the log file to make sure IPv6HTTPServer.__init__ is called.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 15 Feb 2017 16:43:27 -0800 |
parents | d83ca854fa21 |
children | 161ab32b44a1 |
comparison
equal
deleted
inserted
replaced
30985:1f803482844a | 30986:f07ca071a058 |
---|---|
9 largefiles.usercache=$TESTTMP/.cache/largefiles (glob) | 9 largefiles.usercache=$TESTTMP/.cache/largefiles (glob) |
10 ui.slash=True | 10 ui.slash=True |
11 ui.interactive=False | 11 ui.interactive=False |
12 ui.mergemarkers=detailed | 12 ui.mergemarkers=detailed |
13 ui.promptecho=True | 13 ui.promptecho=True |
14 web.ipv6=True (?) | |
14 $ hg init t | 15 $ hg init t |
15 $ cd t | 16 $ cd t |
16 | 17 |
17 Make a changeset: | 18 Make a changeset: |
18 | 19 |