# HG changeset patch # User Jun Wu <qu...@fb.com> # Date 1487221422 28800 # Wed Feb 15 21:03:42 2017 -0800 # Node ID f2743873dfbd6adedcd3aa1777b651ce5bd6f6ed # Parent a70e11929c63cd9245812f3db8091a449cd1273e # Available At https://bitbucket.org/quark-zju/hg-draft # hg pull https://bitbucket.org/quark-zju/hg-draft -r f2743873dfbd runtests: export HGIPV6 to hint test scripts whether to use IPv6
Previously, run-tests.py only exports HGPORT, and scripts in tests do not know if IPv6 should be used. And that breaks scripts like dumbhttp.py which always uses IPv4. This patch makes run-tests.py export HGIPV6, which can help test scripts like dumbhttp.py and tinyproxy.py to decide whether to use IPv6 or not. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -584,4 +584,5 @@ class Test(unittest.TestCase): self._hgcommand = hgcommand or b'hg' self._usechg = usechg + self._useipv6 = useipv6 self._aborted = False @@ -874,4 +875,5 @@ class Test(unittest.TestCase): env["HGENCODING"] = "ascii" env["HGENCODINGMODE"] = "strict" + env['HGIPV6'] = str(int(self._useipv6)) # Reset some environment variables to well-known values so that _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel