diff options
author | Chris Evich <cevich@redhat.com> | 2020-12-10 14:07:46 -0500 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2020-12-15 18:49:09 -0500 |
commit | 0bb865e6c24942afec3757abd7ea6375be182190 (patch) | |
tree | 53ed46fee04d66138f768532c4e211de6a0fad61 /test/e2e | |
parent | e6fbc15f26b2a609936dfc11732037c70ee14cba (diff) | |
download | podman-0bb865e6c24942afec3757abd7ea6375be182190.tar.gz podman-0bb865e6c24942afec3757abd7ea6375be182190.tar.bz2 podman-0bb865e6c24942afec3757abd7ea6375be182190.zip |
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>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/pod_stats_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/e2e/pod_stats_test.go b/test/e2e/pod_stats_test.go index 9af410fcc..a034ec2d1 100644 --- a/test/e2e/pod_stats_test.go +++ b/test/e2e/pod_stats_test.go @@ -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") } |