From 1b4933376f4e6738ff3a0c42a2e27c6d21c07e7c Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 29 Jul 2020 16:42:40 -0400 Subject: Add a system test to verify --runtime is preserved Signed-off-by: Matthew Heon --- test/system/030-run.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/system/030-run.bats') diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 28dc7c7a7..9f4037730 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -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 -- cgit v1.2.3-54-g00ecf