From 9adcb85929ac9536e967907c6a6057046a98ab16 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 10 Jan 2018 07:51:02 -0600 Subject: podman run container id to file podman run --cidfile /tmp/foo writes the container's id to a file. Signed-off-by: baude Closes: #205 Approved by: rhatdan --- test/podman_run.bats | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/podman_run.bats b/test/podman_run.bats index 6ffc47ef3..7066000d0 100644 --- a/test/podman_run.bats +++ b/test/podman_run.bats @@ -132,3 +132,12 @@ IMAGE="docker.io/library/fedora:latest" echo $output [ "$status" -eq 0 ] } + +@test "podman run with cidfile" { + run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --cidfile /tmp/cidfile $BB ls" + echo "$output" + [ "$status" -eq 0 ] + run rm /tmp/cidfile + echo "$output" + [ "$status" -eq 0 ] +} -- cgit v1.2.3-54-g00ecf