From 7b08aa78e4ede4c54fda6cd9917bb62e18d0d634 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 2 Jan 2018 16:29:43 -0600 Subject: 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 Closes: #179 Approved by: baude --- test/podman_stop.bats | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/podman_stop.bats') diff --git a/test/podman_stop.bats b/test/podman_stop.bats index 498d71838..839301435 100644 --- a/test/podman_stop.bats +++ b/test/podman_stop.bats @@ -47,3 +47,10 @@ function setup() { echo "$output" [ "$status" -eq 0 ] } + +@test "stop a container with latest" { + ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d ${ALPINE} sleep 9999 + run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} stop -t 1 -l" + echo "$output" + [ "$status" -eq 0 ] +} -- cgit v1.2.3-54-g00ecf