summaryrefslogtreecommitdiff
path: root/test/podman_run.bats
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-10 07:51:02 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-11 21:27:26 +0000
commit9adcb85929ac9536e967907c6a6057046a98ab16 (patch)
tree88aeff6abd88055048f9d157cde67a01cbd2e2a3 /test/podman_run.bats
parentdd0d35deb098b63f8c5be7ef9d8d63c16760221b (diff)
downloadpodman-9adcb85929ac9536e967907c6a6057046a98ab16.tar.gz
podman-9adcb85929ac9536e967907c6a6057046a98ab16.tar.bz2
podman-9adcb85929ac9536e967907c6a6057046a98ab16.zip
podman run container id to file
podman run --cidfile /tmp/foo writes the container's id to a file. Signed-off-by: baude <bbaude@redhat.com> Closes: #205 Approved by: rhatdan
Diffstat (limited to 'test/podman_run.bats')
-rw-r--r--test/podman_run.bats9
1 files changed, 9 insertions, 0 deletions
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 ]
+}