summaryrefslogtreecommitdiff
path: root/test/kpod_rm.bats
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-24 11:04:22 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-29 12:15:15 +0000
commit0e3dd5f6877db7eed33319176f5e9a63fbefc4db (patch)
treeca06ac9c88338444b0d841e924e0987ea76b2833 /test/kpod_rm.bats
parent831e2c30d479a92c203d2caf82106cb85a6cdfc8 (diff)
downloadpodman-0e3dd5f6877db7eed33319176f5e9a63fbefc4db.tar.gz
podman-0e3dd5f6877db7eed33319176f5e9a63fbefc4db.tar.bz2
podman-0e3dd5f6877db7eed33319176f5e9a63fbefc4db.zip
Update container-based tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #68 Approved by: rhatdan
Diffstat (limited to 'test/kpod_rm.bats')
-rw-r--r--test/kpod_rm.bats7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/kpod_rm.bats b/test/kpod_rm.bats
index 3a7551ea6..ad8d43062 100644
--- a/test/kpod_rm.bats
+++ b/test/kpod_rm.bats
@@ -6,6 +6,11 @@ function setup() {
copy_images
}
+function teardown() {
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} rm -f `${KPOD_BINARY} ${KPOD_OPTIONS} ps -a -q`"
+ cleanup_test
+}
+
@test "remove a stopped container" {
run ${KPOD_BINARY} $KPOD_OPTIONS run -d ${ALPINE} ls
echo "$output"
@@ -37,7 +42,6 @@ function setup() {
}
@test "remove a running container" {
- skip "Skipping until kpod stop is implemented"
run ${KPOD_BINARY} $KPOD_OPTIONS run -d ${ALPINE} sleep 15
echo "$output"
[ "$status" -eq 0 ]
@@ -58,7 +62,6 @@ function setup() {
}
@test "remove all containers with one running" {
- skip "Skipping until kpod stop is implemented"
${KPOD_BINARY} ${KPOD_OPTIONS} create $BB ls
${KPOD_BINARY} ${KPOD_OPTIONS} create $BB ls -l
${KPOD_BINARY} ${KPOD_OPTIONS} create $BB whoami