diff options
Diffstat (limited to 'test/e2e/rootless_test.go')
-rw-r--r-- | test/e2e/rootless_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go index 11da9ac9f..9737b9a09 100644 --- a/test/e2e/rootless_test.go +++ b/test/e2e/rootless_test.go @@ -34,6 +34,16 @@ var _ = Describe("Podman rootless", func() { GinkgoWriter.Write([]byte(timedResult)) }) + It("podman rootless help|version", func() { + commands := []string{"help", "version"} + for _, v := range commands { + env := os.Environ() + cmd := podmanTest.PodmanAsUser([]string{v}, 1000, 1000, env) + cmd.WaitWithDefaultTimeout() + Expect(cmd.ExitCode()).To(Equal(0)) + } + }) + It("podman rootless rootfs", func() { // Check if we can create an user namespace err := exec.Command("unshare", "-r", "echo", "hello").Run() |