From 868de4e5bae3092953b3092c07c5a2eea1fd6a50 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Wed, 12 Feb 2020 12:25:23 -0800 Subject: [PATCH] added ability to repro current virtualenv bug behind a proxy, and adding verbosity to see why azure is unhappy --- .ci/localhost_ansible_tests.py | 2 +- .../ansible/regression/issue_152__virtualenv_python_fails.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.ci/localhost_ansible_tests.py b/.ci/localhost_ansible_tests.py index f7e1ecbd..349836db 100755 --- a/.ci/localhost_ansible_tests.py +++ b/.ci/localhost_ansible_tests.py @@ -50,5 +50,5 @@ with ci_lib.Fold('machine_prep'): with ci_lib.Fold('ansible'): os.chdir(TESTS_DIR) playbook = os.environ.get('PLAYBOOK', 'all.yml') - run('./run_ansible_playbook.py %s -l target %s', + run('./run_ansible_playbook.py %s -l target %s -vvv', playbook, ' '.join(sys.argv[1:])) diff --git a/tests/ansible/regression/issue_152__virtualenv_python_fails.yml b/tests/ansible/regression/issue_152__virtualenv_python_fails.yml index 85109309..67ff49b2 100644 --- a/tests/ansible/regression/issue_152__virtualenv_python_fails.yml +++ b/tests/ansible/regression/issue_152__virtualenv_python_fails.yml @@ -9,6 +9,10 @@ # directly. - shell: virtualenv /tmp/issue_152_virtualenv when: lout.python_version > '2.6' + environment: + https_proxy: "{{ lookup('env', 'https_proxy')|default('') }}" + no_proxy: "{{ lookup('env', 'no_proxy')|default('') }}" + PATH: "{{ lookup('env', 'PATH') }}" - custom_python_detect_environment: vars: