From 0f5dc50d6d499da6eee7de15d840de4b6a633590 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Tue, 21 Feb 2023 11:06:30 +0100 Subject: [PATCH] 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. --- Makefile | 3 ++- TESTING.md | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe83651..105b696 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/TESTING.md b/TESTING.md index 2b009e0..829b61e 100644 --- a/TESTING.md +++ b/TESTING.md @@ -14,7 +14,15 @@ Everytime you push on your fork or you create a pull request, both workflows run You can use GitHub to run ansible-test either on the community repo or your fork. But sometimes you want to quickly test a single version or a single target. To do that, you can use the Makefile present at the root of this repository. -Actually, the makefile only support Podman. +For now, the makefile only support Podman. + +### Requirements + +- python 3.8+ +- make + + +### Makefile options The Makefile accept the following options: