summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <rishi@fedoraproject.org>2019-01-08 15:57:58 +0100
committerDebarshi Ray <rishi@fedoraproject.org>2019-01-08 16:34:09 +0100
commitf71264e6126fa889306693b97177128da05836fe (patch)
tree0a867b0bb4eb8d60387f76c785f81bfd895e7a71
parent9474b8cea239348d11c913b03b9461afaf663f0b (diff)
downloadpodman-f71264e6126fa889306693b97177128da05836fe.tar.gz
podman-f71264e6126fa889306693b97177128da05836fe.tar.bz2
podman-f71264e6126fa889306693b97177128da05836fe.zip
Test that 'podman start --sig-proxy' does not work without --attach
Signed-off-by: Debarshi Ray <rishi@fedoraproject.org>
-rw-r--r--test/e2e/start_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/start_test.go b/test/e2e/start_test.go
index 64245c609..9d7ac145c 100644
--- a/test/e2e/start_test.go
+++ b/test/e2e/start_test.go
@@ -115,4 +115,14 @@ var _ = Describe("Podman start", func() {
numContainers := podmanTest.NumberOfContainers()
Expect(numContainers).To(Equal(1))
})
+
+ It("podman start --sig-proxy should not work without --attach", func() {
+ session := podmanTest.Podman([]string{"create", ALPINE, "ls"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"start", "-l", "--sig-proxy"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(125))
+ })
})