diff options
Diffstat (limited to 'test/e2e/run_cgroup_parent_test.go')
-rw-r--r-- | test/e2e/run_cgroup_parent_test.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/e2e/run_cgroup_parent_test.go b/test/e2e/run_cgroup_parent_test.go index efd7c8bb8..00b8d952d 100644 --- a/test/e2e/run_cgroup_parent_test.go +++ b/test/e2e/run_cgroup_parent_test.go @@ -32,6 +32,9 @@ var _ = Describe("Podman run with --cgroup-parent", func() { }) Specify("valid --cgroup-parent using cgroupfs", func() { + if !containerized() { + Skip("Must be containerized to run this test.") + } cgroup := "/zzz" run := podmanTest.Podman([]string{"run", "--cgroup-parent", cgroup, fedoraMinimal, "cat", "/proc/self/cgroup"}) run.WaitWithDefaultTimeout() @@ -42,6 +45,9 @@ var _ = Describe("Podman run with --cgroup-parent", func() { Specify("no --cgroup-parent", func() { cgroup := "/libpod_parent" + if !containerized() { + cgroup = "/machine.slice" + } run := podmanTest.Podman([]string{"run", fedoraMinimal, "cat", "/proc/self/cgroup"}) run.WaitWithDefaultTimeout() Expect(run.ExitCode()).To(Equal(0)) @@ -50,7 +56,9 @@ var _ = Describe("Podman run with --cgroup-parent", func() { }) Specify("valid --cgroup-parent using slice", func() { - Skip("Requires Systemd cgroup manager support") + if containerized() { + Skip("Requires Systemd cgroup manager support") + } cgroup := "aaaa.slice" run := podmanTest.Podman([]string{"run", "--cgroup-parent", cgroup, fedoraMinimal, "cat", "/proc/1/cgroup"}) run.WaitWithDefaultTimeout() |