##// END OF EJS Templates
runtests: set web.address to localhost...
Jun Wu -
r31009:161ab32b default
parent child Browse files
Show More
@@ -933,6 +933,8 b' class Test(unittest.TestCase):'
933 hgrc.write(b'[largefiles]\n')
933 hgrc.write(b'[largefiles]\n')
934 hgrc.write(b'usercache = %s\n' %
934 hgrc.write(b'usercache = %s\n' %
935 (os.path.join(self._testtmp, b'.cache/largefiles')))
935 (os.path.join(self._testtmp, b'.cache/largefiles')))
936 hgrc.write(b'[web]\n')
937 hgrc.write(b'address = localhost\n')
936
938
937 for opt in self._extraconfigopts:
939 for opt in self._extraconfigopts:
938 section, key = opt.split('.', 1)
940 section, key = opt.split('.', 1)
@@ -11,6 +11,7 b' Create a repository:'
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.address=localhost
14 web.ipv6=True (?)
15 web.ipv6=True (?)
15 $ hg init t
16 $ hg init t
16 $ cd t
17 $ cd t
@@ -199,6 +199,7 b' check that local configs for the cached '
199 ui.usehttp2=true (?)
199 ui.usehttp2=true (?)
200 ui.foo=bar
200 ui.foo=bar
201 ui.nontty=true
201 ui.nontty=true
202 web.address=localhost
202 web.ipv6=True (?)
203 web.ipv6=True (?)
203 *** runcommand init foo
204 *** runcommand init foo
204 *** runcommand -R foo showconfig ui defaults
205 *** runcommand -R foo showconfig ui defaults
@@ -28,11 +28,11 b' Test server address cannot be reused'
28
28
29 #if windows
29 #if windows
30 $ hg serve -p $HGPORT1 2>&1
30 $ hg serve -p $HGPORT1 2>&1
31 abort: cannot start server at ':$HGPORT1': * (glob)
31 abort: cannot start server at 'localhost:$HGPORT1': * (glob)
32 [255]
32 [255]
33 #else
33 #else
34 $ hg serve -p $HGPORT1 2>&1
34 $ hg serve -p $HGPORT1 2>&1
35 abort: cannot start server at ':$HGPORT1': Address already in use
35 abort: cannot start server at 'localhost:$HGPORT1': Address already in use
36 [255]
36 [255]
37 #endif
37 #endif
38 $ cd ..
38 $ cd ..
@@ -23,7 +23,7 b' Test server address cannot be reused'
23 [255]
23 [255]
24 #else
24 #else
25 $ hg serve -p $HGPORT1 2>&1
25 $ hg serve -p $HGPORT1 2>&1
26 abort: cannot start server at ':$HGPORT1': Address already in use
26 abort: cannot start server at 'localhost:$HGPORT1': Address already in use
27 [255]
27 [255]
28 #endif
28 #endif
29 $ cd ..
29 $ cd ..
@@ -36,11 +36,11 b' Test server address cannot be reused'
36
36
37 #if windows
37 #if windows
38 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
38 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
39 abort: cannot start server at ':$HGPORT':
39 abort: cannot start server at 'localhost:$HGPORT':
40 [255]
40 [255]
41 #else
41 #else
42 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
42 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
43 abort: cannot start server at ':$HGPORT': Address already in use
43 abort: cannot start server at 'localhost:$HGPORT': Address already in use
44 [255]
44 [255]
45 #endif
45 #endif
46 $ cd ..
46 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now