mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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:
8
.github/workflows/podman-test.yaml
vendored
8
.github/workflows/podman-test.yaml
vendored
@@ -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
|
||||
|
||||
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user