Skip to content

Commit

Permalink
test: fix podman run test as rootless
Browse files Browse the repository at this point in the history
aafa809 introduced the regression.

Signed-off-by: Giuseppe Scrivano <[email protected]>
(cherry picked from commit 640c2d5)
  • Loading branch information
giuseppe authored and mheon committed Apr 12, 2022
1 parent 8292fc0 commit 6ebfaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ var _ = Describe("Podman run", func() {
session = podmanTest.Podman([]string{"run", "--userns=keep-id", "--privileged", "--rm", ALPINE, "grep", "CapInh", "/proc/self/status"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.OutputToString()).To(ContainSubstring("0000000000000002"))
Expect(session.OutputToString()).To(ContainSubstring("0000000000000000"))

session = podmanTest.Podman([]string{"run", "--userns=keep-id", "--cap-add=DAC_OVERRIDE", "--rm", ALPINE, "grep", "CapInh", "/proc/self/status"})
session.WaitWithDefaultTimeout()
Expand Down

0 comments on commit 6ebfaa0

Please sign in to comment.