From 648295be98e9c3c3b4620507e939dbe69083955a Mon Sep 17 00:00:00 2001 From: Mario Nitchev Date: Thu, 19 Mar 2020 12:52:08 +0200 Subject: [PATCH] Skip test for cgroups v2 Signed-off-by: Yulia Nedyalkova --- libcontainer/cgroups/fscommon/fscommon_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcontainer/cgroups/fscommon/fscommon_test.go b/libcontainer/cgroups/fscommon/fscommon_test.go index 6d6f8bbe..e56052e0 100644 --- a/libcontainer/cgroups/fscommon/fscommon_test.go +++ b/libcontainer/cgroups/fscommon/fscommon_test.go @@ -14,6 +14,10 @@ import ( ) func TestWriteCgroupFileHandlesInterrupt(t *testing.T) { + if cgroups.IsCgroup2UnifiedMode() { + t.Skip("cgroup v2 is not supported") + } + memoryCgroupMount, err := cgroups.FindCgroupMountpoint("", "memory") if err != nil { t.Fatal(err)