From: Matt Weber Date: Wed, 11 Jul 2018 14:31:11 +0000 (-0500) Subject: support/testing: runtest proxy support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=361bc21c523e0e6f030080eb910dfb53e4614c7b;p=buildroot.git support/testing: runtest proxy support Allow builder.py to inherit the system proxy settings from the env if they are present. Signed-off-by: Matthew Weber Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- diff --git a/support/testing/infra/builder.py b/support/testing/infra/builder.py index faf1eb1494..30230fdb17 100644 --- a/support/testing/infra/builder.py +++ b/support/testing/infra/builder.py @@ -35,6 +35,12 @@ class Builder(object): def build(self): env = {"PATH": os.environ["PATH"]} + if "http_proxy" in os.environ: + self.logfile.write("Using system proxy: " + + os.environ["http_proxy"] + "\n") + self.logfile.flush() + env['http_proxy'] = os.environ["http_proxy"] + env['https_proxy'] = os.environ["http_proxy"] cmd = ["make", "-C", self.builddir] ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile, env=env)