mirror of
https://github.com/containers/podman.git
synced 2025-11-28 17:18:58 +08:00
Add a test for containers.conf runtime options
Signed-off-by: Matt Heon <mheon@redhat.com>
This commit is contained in:
@@ -58,6 +58,25 @@ echo $rand | 0 | $rand
|
||||
is "$output" ".*invalidflag" "failed when passing undefined flags to the runtime"
|
||||
}
|
||||
|
||||
# bats test_tags=ci:parallel
|
||||
@test "podman run - containers.conf runtime options" {
|
||||
skip_if_remote "requires local containers.conf"
|
||||
|
||||
containersConf=$PODMAN_TMPDIR/containers.conf
|
||||
cat >$containersConf <<EOF
|
||||
[engine]
|
||||
runtime="$(podman_runtime)"
|
||||
|
||||
[engine.runtimes_flags]
|
||||
$(podman_runtime) = [
|
||||
"invalidflag",
|
||||
]
|
||||
EOF
|
||||
|
||||
CONTAINERS_CONF="$containersConf" run_podman 126 run --rm $IMAGE
|
||||
is "$output" ".*invalidflag" "failed when passing undefined flags to the runtime"
|
||||
}
|
||||
|
||||
# bats test_tags=ci:parallel
|
||||
@test "podman run --memory=0 runtime option" {
|
||||
run_podman run --memory=0 --rm $IMAGE echo hello
|
||||
|
||||
Reference in New Issue
Block a user