summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-15 13:38:30 -0500
committerGitHub <noreply@github.com>2021-01-15 13:38:30 -0500
commit53ecda298150038d67f466c834ec3b87b3a678e5 (patch)
tree70cdf3e7388c9343d48a496d67fbb605f8a4abd4 /test/e2e
parent0400dc0a0017a8347e47b32c411e65531b0f4af4 (diff)
parent2c328a4ac12262771861b2be6522acbfa5bbadb6 (diff)
downloadpodman-53ecda298150038d67f466c834ec3b87b3a678e5.tar.gz
podman-53ecda298150038d67f466c834ec3b87b3a678e5.tar.bz2
podman-53ecda298150038d67f466c834ec3b87b3a678e5.zip
Merge pull request #8949 from giuseppe/sysfs-for-rootless
specgen: improve heuristic for /sys bind mount
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_ns_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_ns_test.go b/test/e2e/run_ns_test.go
index 51657cb1e..29d2d4395 100644
--- a/test/e2e/run_ns_test.go
+++ b/test/e2e/run_ns_test.go
@@ -105,6 +105,14 @@ var _ = Describe("Podman run ns", func() {
Expect(session).To(ExitWithError())
})
+ It("podman run mounts fresh cgroup", func() {
+ session := podmanTest.Podman([]string{"run", fedoraMinimal, "grep", "cgroup", "/proc/self/mountinfo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ output := session.OutputToString()
+ Expect(output).ToNot(ContainSubstring(".."))
+ })
+
It("podman run --ipc=host --pid=host", func() {
SkipIfRootlessCgroupsV1("Not supported for rootless + CGroupsV1")
cmd := exec.Command("ls", "-l", "/proc/self/ns/pid")