tests: force a stable hostname in patchbomb tests
authorAugie Fackler <raf@durin42.com>
Thu, 16 Aug 2018 00:42:04 -0400
changeset 39156 1f987f7c832b
parent 39155 1415b78869eb
child 39157 d7007b807fa2
tests: force a stable hostname in patchbomb tests No visible output changes in this commit because everything is globbed away, but on Python 3 the stable hostname will mean that the headers don't trigger RFC2822 multi-line mode because they'll always be consistently short. Differential Revision: https://phab.mercurial-scm.org/D4295
tests/run-tests.py
--- a/tests/run-tests.py	Thu Aug 16 00:40:20 2018 -0400
+++ b/tests/run-tests.py	Thu Aug 16 00:42:04 2018 -0400
@@ -1068,6 +1068,7 @@
         env["HGUSER"]   = "test"
         env["HGENCODING"] = "ascii"
         env["HGENCODINGMODE"] = "strict"
+        env["HGHOSTNAME"] = "test-hostname"
         env['HGIPV6'] = str(int(self._useipv6))
 
         extraextensions = []