summaryrefslogtreecommitdiff
path: root/test/e2e/run_restart_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/run_restart_test.go')
-rw-r--r--test/e2e/run_restart_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_restart_test.go b/test/e2e/run_restart_test.go
index 8737cf4f8..c55dfa1d3 100644
--- a/test/e2e/run_restart_test.go
+++ b/test/e2e/run_restart_test.go
@@ -36,4 +36,18 @@ var _ = Describe("Podman run restart containers", func() {
session2.WaitWithDefaultTimeout()
Expect(session2.ExitCode()).To(Equal(0))
})
+
+ It("Podman start after signal kill", func() {
+ session := podmanTest.RunTopContainer("test1")
+ ok := WaitForContainer(&podmanTest)
+ Expect(ok).To(BeTrue())
+
+ killSession := podmanTest.Podman([]string{"kill", "-s", "9", "test1"})
+ killSession.WaitWithDefaultTimeout()
+ Expect(killSession.ExitCode()).To(Equal(0))
+
+ session2 := podmanTest.Podman([]string{"start", "--attach", "test1"})
+ session2.WaitWithDefaultTimeout()
+ Expect(session2.ExitCode()).To(Equal(0))
+ })
})