summaryrefslogtreecommitdiff
path: root/test/system/700-play.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-16 11:25:33 +0100
committerGitHub <noreply@github.com>2021-03-16 11:25:33 +0100
commit72ddf2fb96332ea70cb7fa126410ab6b6ed44941 (patch)
tree6d0327afcb7e00979af56c798e87d80c15a0c334 /test/system/700-play.bats
parente7dc59252bd722377938ac3e6b4fd7e077f05293 (diff)
parent963d19c759c843a2cdb853a508dbe6a4db8c87cf (diff)
downloadpodman-72ddf2fb96332ea70cb7fa126410ab6b6ed44941.tar.gz
podman-72ddf2fb96332ea70cb7fa126410ab6b6ed44941.tar.bz2
podman-72ddf2fb96332ea70cb7fa126410ab6b6ed44941.zip
Merge pull request #9719 from edsantiago/bats
System test cleanup
Diffstat (limited to 'test/system/700-play.bats')
-rw-r--r--test/system/700-play.bats16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats
index e7904f59f..8fa96741c 100644
--- a/test/system/700-play.bats
+++ b/test/system/700-play.bats
@@ -5,6 +5,20 @@
load helpers
+# This is a long ugly way to clean up pods and remove the pause image
+function teardown() {
+ run_podman pod rm -f -a
+ run_podman rm -f -a
+ run_podman image list --format '{{.ID}} {{.Repository}}'
+ while read id name; do
+ if [[ "$name" =~ /pause ]]; then
+ run_podman rmi $id
+ fi
+ done <<<"$output"
+
+ basic_teardown
+}
+
testYaml="
apiVersion: v1
kind: Pod
@@ -24,7 +38,7 @@ spec:
value: xterm
- name: container
value: podman
- image: quay.io/libpod/alpine:latest
+ image: $IMAGE
name: test
resources: {}
securityContext: