Add a system test to verify --runtime is preserved

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2020-07-29 16:42:40 -04:00
committed by Matthew Heon
parent 3858fc1d01
commit 1b4933376f
4 changed files with 24 additions and 11 deletions

View File

@@ -460,4 +460,17 @@ json-file | f
is "$output" "$expect" "podman run with --tz=local, matches host"
}
# run with --runtime should preserve the named runtime
@test "podman run : full path to --runtime is preserved" {
skip_if_cgroupsv1
skip_if_remote
run_podman run -d --runtime '/usr/bin/crun' $IMAGE sleep 60
cid="$output"
run_podman inspect --format '{{.OCIRuntime}}' $cid
is "$output" "/usr/bin/crun"
run_podman kill $cid
}
# vim: filetype=sh