From 5c837fe5b0409593176b3f185c5f4a59545a423b Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 17 Aug 2021 12:35:29 -0400 Subject: Skip stats test in CGv1 container environments These tests were originally enabled in a situation where CI provided false-positive results. Now that has been corrected, these tests all fail under a CGv1 container environment with the error: ``` Error: unable to load cgroup at /machine.slice/libpod-e4f...086.scope/libpod_parent/libpod-fbd...425: cgroup deleted ``` This commit simply disables the tests under this specific environment. Signed-off-by: Chris Evich --- test/e2e/stats_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/e2e/stats_test.go') diff --git a/test/e2e/stats_test.go b/test/e2e/stats_test.go index a0be5d462..c0d56fdbc 100644 --- a/test/e2e/stats_test.go +++ b/test/e2e/stats_test.go @@ -22,6 +22,9 @@ var _ = Describe("Podman stats", func() { BeforeEach(func() { SkipIfRootlessCgroupsV1("stats not supported on cgroupv1 for rootless users") + if isContainerized() { + SkipIfCgroupV1("stats not supported inside cgroupv1 container environment") + } var err error tempdir, err = CreateTempDirInTempDir() if err != nil { -- cgit v1.2.3-54-g00ecf