summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-12-10 11:48:36 -0500
committerChris Evich <cevich@redhat.com>2020-12-15 18:49:09 -0500
commit8997a2d106a26fa1c643824b0c2638aedd05159a (patch)
tree4d0e6463253f0626b7d491154db7ea12eb5e6e5b /test
parente6ab56657479456cf7dafc655e504b6100dd7374 (diff)
downloadpodman-8997a2d106a26fa1c643824b0c2638aedd05159a.tar.gz
podman-8997a2d106a26fa1c643824b0c2638aedd05159a.tar.bz2
podman-8997a2d106a26fa1c643824b0c2638aedd05159a.zip
Disable pod stats tests in containerized Fedora w/ CGroupsV1
Nearly/all of the 'podman stats' tests fail on Fedora when executing testing inside a container, and CGroupsV1 is used on the host. The typical failure message is of the form `Error: unable to load cgroup at /machine.slice/.../: cgroup deleted`. 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')
-rw-r--r--test/e2e/pod_stats_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e/pod_stats_test.go b/test/e2e/pod_stats_test.go
index 41fc59267..85a60b29b 100644
--- a/test/e2e/pod_stats_test.go
+++ b/test/e2e/pod_stats_test.go
@@ -20,6 +20,9 @@ var _ = Describe("Podman pod stats", func() {
if os.Geteuid() != 0 {
SkipIfCgroupV2("--cgroup-manager=cgroupfs which doesn't work in rootless mode")
}
+ if isContainerized() {
+ SkipIfCgroupV1("All tests fail Error: unable to load cgroup at ...: cgroup deleted")
+ }
tempdir, err = CreateTempDirInTempDir()
if err != nil {