summaryrefslogtreecommitdiff
path: root/test/kpod_run_ns.bats
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-28 13:41:19 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-29 12:15:15 +0000
commite36483b1e644f8fb6f14a62c062ea635fb6851ed (patch)
tree55278869cd60cc491091085f9d1534997ea695f9 /test/kpod_run_ns.bats
parentbbef98621491b79d5b2a397bc17ed4d7967a7aff (diff)
downloadpodman-e36483b1e644f8fb6f14a62c062ea635fb6851ed.tar.gz
podman-e36483b1e644f8fb6f14a62c062ea635fb6851ed.tar.bz2
podman-e36483b1e644f8fb6f14a62c062ea635fb6851ed.zip
Fix tests - use rm -a -f instead of nested commands
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #68 Approved by: rhatdan
Diffstat (limited to 'test/kpod_run_ns.bats')
-rw-r--r--test/kpod_run_ns.bats5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/kpod_run_ns.bats b/test/kpod_run_ns.bats
index eb0af6076..cc3a6b211 100644
--- a/test/kpod_run_ns.bats
+++ b/test/kpod_run_ns.bats
@@ -2,6 +2,11 @@
load helpers
+function teardown() {
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} rm -f -a"
+ cleanup_test
+}
+
function setup() {
copy_images
}