diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-16 13:20:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 13:20:30 +0200 |
commit | 2d47f1ae5425faa6800606092e997bd565dc3a1c (patch) | |
tree | a661269aa2cf5342247062424b11edf5353e274d /test/e2e/pause_test.go | |
parent | 14e0b40379a5446fce1f63140dd0e44a0a3e15ec (diff) | |
parent | a3fd890b8628121b2912398d156a844e9c440ff2 (diff) | |
download | podman-2d47f1ae5425faa6800606092e997bd565dc3a1c.tar.gz podman-2d47f1ae5425faa6800606092e997bd565dc3a1c.tar.bz2 podman-2d47f1ae5425faa6800606092e997bd565dc3a1c.zip |
Merge pull request #3796 from giuseppe/enable-cgroupsv2-crun
cirrus: enable cgroups v2 tests with crun
Diffstat (limited to 'test/e2e/pause_test.go')
-rw-r--r-- | test/e2e/pause_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/pause_test.go b/test/e2e/pause_test.go index 455f60937..c61131078 100644 --- a/test/e2e/pause_test.go +++ b/test/e2e/pause_test.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "github.com/containers/libpod/pkg/cgroups" . "github.com/containers/libpod/test/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -25,6 +26,17 @@ var _ = Describe("Podman pause", func() { if err != nil { os.Exit(1) } + + cgroupsv2, err := cgroups.IsCgroup2UnifiedMode() + Expect(err).To(BeNil()) + + if cgroupsv2 { + _, err := os.Stat("/sys/fs/cgroup/cgroup.freeze") + if err != nil { + Skip("freezer controller not available on the current kernel") + } + } + podmanTest = PodmanTestCreate(tempdir) podmanTest.Setup() podmanTest.SeedImages() |