Fix installation of ansible venv

ansible-test is included in ansible package. Also, on Fedora 37 with
python 3.11, pip is missing. By using ensurepip we solve that issue.
This commit is contained in:
Laurent Indermuehle 2023-02-21 11:06:30 +01:00
commit 0f5dc50d6d
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 11 additions and 2 deletions

View file

@ -62,7 +62,8 @@ test-integration:
mkdir -p .venv/$(ansible)
python -m venv .venv/$(ansible)
source .venv/$(ansible)/bin/activate
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz ansible-test
python -m ensurepip
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz
-set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman $(_continue_on_errors) $(_keep_containers_alive) --python $(python); set +x
rm tests/integration/db_engine_version
rm tests/integration/connector