##// END OF EJS Templates
runtests: always set web.ipv6...
Jun Wu -
r31010:09ec648c default
parent child Browse files
Show More
@@ -599,11 +599,6 b' class Test(unittest.TestCase):'
599 self._testtmp = None
599 self._testtmp = None
600 self._chgsockdir = None
600 self._chgsockdir = None
601
601
602 # If IPv6 is used, set web.ipv6=1 in hgrc so servers will use IPv6
603 if useipv6:
604 self._extraconfigopts = list(self._extraconfigopts)
605 self._extraconfigopts.append('web.ipv6 = True')
606
607 # If we're not in --debug mode and reference output file exists,
602 # If we're not in --debug mode and reference output file exists,
608 # check test output against it.
603 # check test output against it.
609 if debug:
604 if debug:
@@ -935,6 +930,7 b' class Test(unittest.TestCase):'
935 (os.path.join(self._testtmp, b'.cache/largefiles')))
930 (os.path.join(self._testtmp, b'.cache/largefiles')))
936 hgrc.write(b'[web]\n')
931 hgrc.write(b'[web]\n')
937 hgrc.write(b'address = localhost\n')
932 hgrc.write(b'address = localhost\n')
933 hgrc.write(b'ipv6 = %s\n' % self._useipv6)
938
934
939 for opt in self._extraconfigopts:
935 for opt in self._extraconfigopts:
940 section, key = opt.split('.', 1)
936 section, key = opt.split('.', 1)
@@ -12,7 +12,7 b' Create a repository:'
12 ui.mergemarkers=detailed
12 ui.mergemarkers=detailed
13 ui.promptecho=True
13 ui.promptecho=True
14 web.address=localhost
14 web.address=localhost
15 web.ipv6=True (?)
15 web\.ipv6=(?:True|False) (re)
16 $ hg init t
16 $ hg init t
17 $ cd t
17 $ cd t
18
18
@@ -200,7 +200,7 b' check that local configs for the cached '
200 ui.foo=bar
200 ui.foo=bar
201 ui.nontty=true
201 ui.nontty=true
202 web.address=localhost
202 web.address=localhost
203 web.ipv6=True (?)
203 web\.ipv6=(?:True|False) (re)
204 *** runcommand init foo
204 *** runcommand init foo
205 *** runcommand -R foo showconfig ui defaults
205 *** runcommand -R foo showconfig ui defaults
206 defaults.backout=-d "0 0"
206 defaults.backout=-d "0 0"
General Comments 0
You need to be logged in to leave comments. Login now