diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-08 12:37:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 12:37:03 +0200 |
commit | 4e8d074eb1af0b777f1d22c27f1a0c9de2ef7862 (patch) | |
tree | 61b0c8231b641a9f67ef16a834c49645516804c7 | |
parent | e9b178556d89fa7d483826fbfb59e1075081f800 (diff) | |
parent | c433e74ad5a479c0f7df93a06c60d5f349617208 (diff) | |
download | podman-4e8d074eb1af0b777f1d22c27f1a0c9de2ef7862.tar.gz podman-4e8d074eb1af0b777f1d22c27f1a0c9de2ef7862.tar.bz2 podman-4e8d074eb1af0b777f1d22c27f1a0c9de2ef7862.zip |
Merge pull request #6131 from vrothberg/pidfile-1.9
[1.9] add --conmon-pidfile/--cidfile system test
-rw-r--r-- | test/system/030-run.bats | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 56e9fed3b..d5d5121f8 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -158,4 +158,20 @@ echo $rand | 0 | $rand run_podman 1 image exists $NONLOCAL_IMAGE } +# 'run --conmon-pidfile --cid-file' makes sure we don't regress on these flags. +# Both are critical for systemd units. +@test "podman run --conmon-pidfile --cidfile" { + pid=$(mktemp) + cid=$(mktemp) + + # CID file exists -> expected to fail. + run_podman 125 run --rm --conmon-pidfile=$pid --cidfile=$cid $IMAGE ls + + rm $pid $cid + run_podman run --name keepme --conmon-pidfile=$pid --cidfile=$cid --detach $IMAGE sleep infinity + stat $pid $cid + run_podman rm -f keepme + rm $pid $cid +} + # vim: filetype=sh |