Skip 'podman kube --network' test for rootless CGv1

Test emits nasty warning message:
`Resource limits are not supported and ignored on cgroups V1 rootless
systems`

Ref: issue #17582

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2023-02-15 15:54:53 -05:00
parent 197529f084
commit dd51b62b7a
No known key found for this signature in database
GPG Key ID: 03EDC70FD578067F
1 changed files with 2 additions and 0 deletions

View File

@ -237,9 +237,11 @@ EOF
}
@test "podman kube --network" {
skip_if_rootless_cgroupsv1 "Test will never be supported, see #17582."
TESTDIR=$PODMAN_TMPDIR/testdir
mkdir -p $TESTDIR
echo "$testYaml" | sed "s|TESTDIR|${TESTDIR}|g" > $PODMAN_TMPDIR/test.yaml
run_podman kube play --network host $PODMAN_TMPDIR/test.yaml
is "$output" "Pod:.*" "podman kube play should work with --network host"