aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-06-17 17:48:32 +0200
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-06-17 18:24:07 +0000
commite7247dbd9a8d350e283012a0c71c945670d13ca0 (patch)
treeb74196f46acd97d697f2e6a9e3518139800f62db /tests
parente2e77ccf011046ad6e2deed7f224029a4705ebb8 (diff)
downloadkolla-ansible-e7247dbd9a8d350e283012a0c71c945670d13ca0.tar.gz
kolla-ansible-e7247dbd9a8d350e283012a0c71c945670d13ca0.zip
CI: use venv only (and not virtualenv)
It seems we used virtualenv for ceph-ansible only. Change-Id: I7f9002283462dbe4bae3c1d7ff1dedcc4e7d01f2
Diffstat (limited to 'tests')
-rwxr-xr-xtests/deploy-ceph-ansible.sh2
-rw-r--r--tests/pre.yml10
2 files changed, 1 insertions, 11 deletions
diff --git a/tests/deploy-ceph-ansible.sh b/tests/deploy-ceph-ansible.sh
index b018521f1..98914d225 100755
--- a/tests/deploy-ceph-ansible.sh
+++ b/tests/deploy-ceph-ansible.sh
@@ -8,7 +8,7 @@ export PYTHONUNBUFFERED=1
function setup_ceph_ansible {
# Prepare virtualenv for ceph-ansible deployment
- virtualenv --system-site-packages ~/ceph-venv
+ python3 -m venv --system-site-packages ~/ceph-venv
~/ceph-venv/bin/pip install -Ir requirements.txt
~/ceph-venv/bin/pip install -IU selinux
}
diff --git a/tests/pre.yml b/tests/pre.yml
index bd70eca03..83df9bc3f 100644
--- a/tests/pre.yml
+++ b/tests/pre.yml
@@ -31,19 +31,9 @@
- gawk
- python3-pip
- python3-setuptools
- - python3-virtualenv
- python3-wheel
become: true
- # NOTE(hrw): On RedHat systems it is part of python3-virtualenv
- - name: Install virtualenv on Debian systems
- package:
- name:
- - virtualenv
- become: true
- when:
- ansible_os_family == "Debian"
-
- name: Ensure /tmp/logs/ dir
file:
path: "{{ logs_dir }}"