diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-01 16:35:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 16:35:29 -0400 |
commit | 6a2c7d8831e9038f578fbaf8e8e6504d1d5f3045 (patch) | |
tree | 3456e8eea1dfb6d9a19847c2da2b8fdf60eb2fa6 /test/e2e/run_test.go | |
parent | 5d22eb02f95f28a87ed263afe28b7ff4bf2f6fee (diff) | |
parent | df532ee8c1f2179c8a5cbdf2fe1ba42d4eb41cb0 (diff) | |
download | podman-6a2c7d8831e9038f578fbaf8e8e6504d1d5f3045.tar.gz podman-6a2c7d8831e9038f578fbaf8e8e6504d1d5f3045.tar.bz2 podman-6a2c7d8831e9038f578fbaf8e8e6504d1d5f3045.zip |
Merge pull request #7849 from baude/f33tests
misc fixes for f33 integration tests
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 2d4f3a42d..292df529c 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -261,6 +261,8 @@ var _ = Describe("Podman run", func() { }) It("podman run user capabilities test", func() { + // We need to ignore the containers.conf on the test distribution for this test + os.Setenv("CONTAINERS_CONF", "/dev/null") session := podmanTest.Podman([]string{"run", "--rm", "--user", "bin", ALPINE, "grep", "CapBnd", "/proc/self/status"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) @@ -293,6 +295,8 @@ var _ = Describe("Podman run", func() { }) It("podman run user capabilities test with image", func() { + // We need to ignore the containers.conf on the test distribution for this test + os.Setenv("CONTAINERS_CONF", "/dev/null") SkipIfRemote("FIXME This should work on podman-remote") dockerfile := `FROM busybox USER bin` @@ -1134,7 +1138,7 @@ USER mail` It("podman run --device-cgroup-rule", func() { SkipIfRootless("rootless users are not allowed to mknod") deviceCgroupRule := "c 42:* rwm" - session := podmanTest.Podman([]string{"run", "--name", "test", "-d", "--device-cgroup-rule", deviceCgroupRule, ALPINE, "top"}) + session := podmanTest.Podman([]string{"run", "--cap-add", "mknod", "--name", "test", "-d", "--device-cgroup-rule", deviceCgroupRule, ALPINE, "top"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) session = podmanTest.Podman([]string{"exec", "test", "mknod", "newDev", "c", "42", "1"}) |