summaryrefslogtreecommitdiff
path: root/test/podman_kill.bats
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-02 16:29:43 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-08 19:12:17 +0000
commit7b08aa78e4ede4c54fda6cd9917bb62e18d0d634 (patch)
tree1c480d9dfb8db3268dc3fdcca827792278a3ae47 /test/podman_kill.bats
parent6baf6e461de6e560cc48d35239e7c392bec4481c (diff)
downloadpodman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.gz
podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.bz2
podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.zip
Shortcut for most recent container
It is desirable to have a shortcut for the most recently created container. We can now use "**latest" to represent the most recent container instead of its container ID or name. For example: Signed-off-by: baude <bbaude@redhat.com> Closes: #179 Approved by: baude
Diffstat (limited to 'test/podman_kill.bats')
-rw-r--r--test/podman_kill.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/podman_kill.bats b/test/podman_kill.bats
index 1ccf373bb..bb55ed31d 100644
--- a/test/podman_kill.bats
+++ b/test/podman_kill.bats
@@ -62,3 +62,10 @@ function setup() {
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} ps --no-trunc"
[ "$status" -eq 0 ]
}
+
+@test "kill the latest container run" {
+ ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d ${ALPINE} sleep 9999
+ run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} kill -l"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}