Message ID | 20180703014714.GC485@lemon.usersys.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 3643117816..94501e7dc7 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -106,7 +106,9 @@ class BaseVM(object): if interactive: ssh_cmd += ['-t'] assert not isinstance(cmd, str) - ssh_cmd += ["%s@127.0.0.1" % user] + list(cmd) + env = ["%s=%s" % (k, v) for k, v in os.environ.items() if k in \ + ["ftp_proxy", "http_proxy", "https_proxy"]] + ssh_cmd += ["%s@127.0.0.1" % user] + env + list(cmd) logging.debug("ssh_cmd: %s", " ".join(ssh_cmd)) r = subprocess.call(ssh_cmd) if check and r != 0: