Disable rootless pod stats tests w/ CgroupV1

When running as rootless, on a CgroupV1 host these tests all report:
`Error: pod stats is not supported in rootless mode without cgroups v2`

Note: Recently updated F32 (prior-fedora) and Ubuntu 20.04
(prior-ubuntu) VMs always use CGroupsV1 with runc.  F33 and
Ubuntu 20.10 were updated to always use CGroupsV2 with crun.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2020-12-10 14:07:46 -05:00
parent e6fbc15f26
commit 0bb865e6c2
No known key found for this signature in database
GPG Key ID: 03EDC70FD578067F
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@ var _ = Describe("Podman pod stats", func() {
)
BeforeEach(func() {
if os.Geteuid() != 0 {
SkipIfCgroupV2("--cgroup-manager=cgroupfs which doesn't work in rootless mode")
}
SkipIfRootless("Tests fail with both CGv1/2 + required --cgroup-manager=cgroupfs")
if isContainerized() {
SkipIfCgroupV1("All tests fail Error: unable to load cgroup at ...: cgroup deleted")
}