Stop containers after Podman tests (#6535)

* Stop containers after tests

* Use --output-interceptor-mode=none  flag to not wait containers stopped

* Run podman pod inspect after tests

* Dedicated step for listing/stopping containers
This commit is contained in:
Philippe Martin
2023-01-25 15:19:04 +01:00
committed by GitHub
parent 0f1d226431
commit 9ebf766c86
2 changed files with 9 additions and 3 deletions

View File

@@ -23,5 +23,11 @@ jobs:
- name: Run Integration tests
env:
PODMAN_EXEC_NODES: ${{ vars.PODMAN_TEST_EXEC_NODES }}
PODMAN_EXEC_NODES: ${{ secrets.PODMAN_TEST_EXEC_NODES }}
run: make test-integration-podman
- name: List and stop remaining containers
if: ${{ always() }}
run: |
podman pod ls --format '{{.Name}}' | xargs -I '{}' podman pod inspect '{}'
podman pod ls --format '{{.Name}}' | xargs podman pod stop

View File

@@ -59,8 +59,8 @@ GINKGO_FLAGS_ALL = $(GINKGO_TEST_ARGS) --randomize-all --slow-spec-threshold=$(S
GINKGO_FLAGS_AUTO = $(GINKGO_FLAGS_ALL) -p
# Flags for tests that may be run in parallel
GINKGO_FLAGS=$(GINKGO_FLAGS_ALL) -nodes=$(TEST_EXEC_NODES)
# Flags for Podman tests that may be run in parallel
GINKGO_FLAGS_PODMAN=$(GINKGO_FLAGS_ALL) -nodes=$(PODMAN_EXEC_NODES)
# Flags for Podman tests that may be run in parallel, and not waiting for terminating containers
GINKGO_FLAGS_PODMAN=$(GINKGO_FLAGS_ALL) -nodes=$(PODMAN_EXEC_NODES) --output-interceptor-mode=none
# Flags for tests that must not be run in parallel
GINKGO_FLAGS_ONE=$(GINKGO_FLAGS_ALL) -nodes=1
# GolangCi version for unit-validate test