diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-12-08 14:35:12 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-12-08 15:51:23 +0100 |
commit | 2d517b687b0832a6240a165e8aacef2876b9228a (patch) | |
tree | 3c33b88b10ea7b92a1dec0faed9c41a1224b567c /test/system | |
parent | 31be3a9f24597a282a51764c15603311e59e4d44 (diff) | |
download | podman-2d517b687b0832a6240a165e8aacef2876b9228a.tar.gz podman-2d517b687b0832a6240a165e8aacef2876b9228a.tar.bz2 podman-2d517b687b0832a6240a165e8aacef2876b9228a.zip |
generate systemd: support entrypoint JSON strings
Make sure to preserve the quoting of entrypoint JSON strings.
Fixes: #12477
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/250-systemd.bats | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index 56d36934d..c49727cc9 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -104,8 +104,9 @@ function service_cleanup() { } @test "podman autoupdate local" { + # Note that the entrypoint may be a JSON string which requires preserving the quotes (see #12477) cname=$(random_string) - run_podman create --name $cname --label "io.containers.autoupdate=local" $IMAGE top + run_podman create --name $cname --label "io.containers.autoupdate=local" --entrypoint '["top"]' $IMAGE # Start systemd service to run this container service_setup |