summaryrefslogtreecommitdiff
path: root/test/podman_wait.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/podman_wait.bats')
-rw-r--r--test/podman_wait.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/podman_wait.bats b/test/podman_wait.bats
index 3109ce91e..9d6c22734 100644
--- a/test/podman_wait.bats
+++ b/test/podman_wait.bats
@@ -34,3 +34,10 @@ function teardown() {
run bash -c ${PODMAN_BINARY} ${PODMAN_OPTIONS} wait $ctr_id
[ "$status" -eq 0 ]
}
+
+@test "wait on the latest container" {
+ ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -d ${ALPINE} sleep 5
+ run bash -c ${PODMAN_BINARY} ${PODMAN_OPTIONS} wait -l
+ echo "$output"
+ [ "$status" -eq 0 ]
+}