[tests] Remove pip and install virtualenv instead

We don't need pip for tests, only virtualenv. We therefore
replace the implementation to install and use virtualenv.

Change-Id: I88fc54769eff51cf07bc4496dc2a9aa538af5bb4
(cherry picked from commit b6babcfc80)
This commit is contained in:
Jesse Pretorius (odyssey4me) 2020-06-22 14:12:26 +01:00
parent fc139ba3fc
commit 32cc3579c2
1 changed files with 2 additions and 4 deletions

View File

@ -19,15 +19,14 @@
path: "{{ ansible_user_dir }}/zuul-output/logs"
state: directory
- name: Ensure pip is available
- name: Ensure virtualenv is available
include_role:
name: ensure-pip
name: ensure-virtualenv
- name: Setup bindep
pip:
name: "bindep"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
virtualenv_site_packages: true
- name: Run bindep
@ -40,7 +39,6 @@
pip:
requirements: "{{ tripleo_upgrade_project_path }}/molecule/molecule-requirements.txt"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
virtualenv_site_packages: true
- name: Change role requirements to use zuul sources, if any are available