summaryrefslogtreecommitdiff
path: root/test/e2e/run_ns_test.go
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-12-11 10:19:22 -0500
committerChris Evich <cevich@redhat.com>2020-12-15 18:49:10 -0500
commit427731ab9c977f1b89b49ff23d3adcffb6212f49 (patch)
tree8ce8f21d117307221872b45de77ef9a8ca4d4067 /test/e2e/run_ns_test.go
parent0bb865e6c24942afec3757abd7ea6375be182190 (diff)
downloadpodman-427731ab9c977f1b89b49ff23d3adcffb6212f49.tar.gz
podman-427731ab9c977f1b89b49ff23d3adcffb6212f49.tar.bz2
podman-427731ab9c977f1b89b49ff23d3adcffb6212f49.zip
Disable incompatible rootless + CGroupsV1 tests
These tests simply will not work under these conditions. 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/e2e/run_ns_test.go')
-rw-r--r--test/e2e/run_ns_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/e2e/run_ns_test.go b/test/e2e/run_ns_test.go
index 5242e04d2..51657cb1e 100644
--- a/test/e2e/run_ns_test.go
+++ b/test/e2e/run_ns_test.go
@@ -35,6 +35,7 @@ var _ = Describe("Podman run ns", func() {
})
It("podman run pidns test", func() {
+ SkipIfRootlessCgroupsV1("Not supported for rootless + CGroupsV1")
session := podmanTest.Podman([]string{"run", fedoraMinimal, "bash", "-c", "echo $$"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
@@ -105,6 +106,7 @@ var _ = Describe("Podman run ns", func() {
})
It("podman run --ipc=host --pid=host", func() {
+ SkipIfRootlessCgroupsV1("Not supported for rootless + CGroupsV1")
cmd := exec.Command("ls", "-l", "/proc/self/ns/pid")
res, err := cmd.Output()
Expect(err).To(BeNil())