mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-28 07:31:24 -07:00
Add option to let containers alive at end of testing
This commit is contained in:
parent
ada9f6adf8
commit
ff20c8ce18
2 changed files with 14 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -52,16 +52,20 @@ test-integration:
|
|||
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
|
||||
ifdef keep_containers_alive
|
||||
-set -x; ansible-test integration $(target) -v --color --coverage --retry-on-error --continue-on-error --diff --docker $(docker_image) --docker-network podman --docker-terminate never --python $(python); set +x
|
||||
else
|
||||
-set -x; ansible-test integration $(target) -v --color --coverage --retry-on-error --continue-on-error --diff --docker $(docker_image) --docker-network podman --python $(python); set +x
|
||||
# -set -x; ansible-test integration $(target) -v --color --coverage --retry-on-error --continue-on-error --diff --docker $(docker_image) --docker-network podman --python $(python); set +x
|
||||
# -set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman --docker-terminate never --python $(python); set +x
|
||||
endif
|
||||
rm tests/integration/db_engine_version
|
||||
rm tests/integration/connector
|
||||
rm tests/integration/python
|
||||
rm tests/integration/ansible
|
||||
ifndef keep_containers_alive
|
||||
podman stop --time 0 --ignore primary
|
||||
podman stop --time 0 --ignore replica1
|
||||
podman stop --time 0 --ignore replica2
|
||||
podman rm --ignore primary
|
||||
podman rm --ignore replica1
|
||||
podman rm --ignore replica2
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue