Mercurial > hg
comparison tests/run-tests.py @ 37009:5890e5872f36
hgweb: allow defining Server response header for HTTP server
By default, the string contains the Python version. Server
operators may want to change this.
Because we like deterministic tests, we change the test harness
to always set this value to a known string. Various globs over
the server header have now been removed.
# no-check-commit because we add version_string()
Differential Revision: https://phab.mercurial-scm.org/D2840
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 09:45:56 -0700 |
parents | a247a0e82e7d |
children | 4e6a6d0dccee |
comparison
equal
deleted
inserted
replaced
37008:16203c6079e7 | 37009:5890e5872f36 |
---|---|
1117 hgrc.write(b'usercache = %s\n' % | 1117 hgrc.write(b'usercache = %s\n' % |
1118 (os.path.join(self._testtmp, b'.cache/lfs'))) | 1118 (os.path.join(self._testtmp, b'.cache/lfs'))) |
1119 hgrc.write(b'[web]\n') | 1119 hgrc.write(b'[web]\n') |
1120 hgrc.write(b'address = localhost\n') | 1120 hgrc.write(b'address = localhost\n') |
1121 hgrc.write(b'ipv6 = %s\n' % str(self._useipv6).encode('ascii')) | 1121 hgrc.write(b'ipv6 = %s\n' % str(self._useipv6).encode('ascii')) |
1122 hgrc.write(b'server-header = testing stub value\n') | |
1122 | 1123 |
1123 for opt in self._extraconfigopts: | 1124 for opt in self._extraconfigopts: |
1124 section, key = opt.encode('utf-8').split(b'.', 1) | 1125 section, key = opt.encode('utf-8').split(b'.', 1) |
1125 assert b'=' in key, ('extra config opt %s must ' | 1126 assert b'=' in key, ('extra config opt %s must ' |
1126 'have an = for assignment' % opt) | 1127 'have an = for assignment' % opt) |