summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/cleanup.yaml
diff options
context:
space:
mode:
authorGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
committerGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
commit619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch)
treeb620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/cli/tasks/cleanup.yaml
parent4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff)
downloadbuildah-master.tar.gz
buildah-master.tar.xz
buildah-master.zip
Sync new tests from upstreamfirstHEADmaster
* the tests is quite old since it moved from upstreamfirst * lots of new cases are added, like option 'run', 'inspect' etc * save log to TEST_ARTIFACTS when the variable is set * always run tests with latest runc built from source Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
Diffstat (limited to 'tests/roles/cli/tasks/cleanup.yaml')
-rw-r--r--tests/roles/cli/tasks/cleanup.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/roles/cli/tasks/cleanup.yaml b/tests/roles/cli/tasks/cleanup.yaml
index 45f31d5..e14ffb1 100644
--- a/tests/roles/cli/tasks/cleanup.yaml
+++ b/tests/roles/cli/tasks/cleanup.yaml
@@ -1,4 +1,11 @@
---
-- name: remove buildah containers after testing
- command: buildah rm busybox nginxc nginxc-2
- ignore_errors: true
+- block:
+ - name: remove all buildah containers after testing
+ command: buildah rm -a
+
+ - name: remove all images after testing
+ command: buildah rmi -a
+
+ always:
+ - include_role:
+ name: tear-down