diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-23 09:42:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 09:42:47 -0400 |
commit | 5948320951e17a60da848ba16e3c7aed1676129a (patch) | |
tree | 6cdfaef577783527a6fae0b123a465156064f000 /test/system/030-run.bats | |
parent | 833501a9a15562865d4ab8887a58250f7f4fe14a (diff) | |
parent | 64339d47c105373557248d45fddf7ab2db435180 (diff) | |
download | podman-5948320951e17a60da848ba16e3c7aed1676129a.tar.gz podman-5948320951e17a60da848ba16e3c7aed1676129a.tar.bz2 podman-5948320951e17a60da848ba16e3c7aed1676129a.zip |
Merge pull request #15384 from sstosh/options-cgroupsv1-rootless
Warning messages are printed and ignored if we use an unsupported option on cgroups V1 rootless systems
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r-- | test/system/030-run.bats | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 908c169ee..a3bfe5780 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -56,7 +56,12 @@ echo $rand | 0 | $rand @test "podman run --memory=0 runtime option" { run_podman run --memory=0 --rm $IMAGE echo hello - is "$output" "hello" "failed to run when --memory is set to 0" + if is_rootless && ! is_cgroupsv2; then + is "${lines[0]}" "Resource limits are not supported and ignored on cgroups V1 rootless systems" "--memory is not supported" + is "${lines[1]}" "hello" "--memory is ignored" + else + is "$output" "hello" "failed to run when --memory is set to 0" + fi } # 'run --preserve-fds' passes a number of additional file descriptors into the container |