sleep does not catch SIGTERM

As Matt pointed out, when running sleep in a container, the clean up was taking a
full ten seconds to stop container because sleep does not catch SIGTERM which is
the default podman stop signal and it had to wait for SIGKILL.  Changing sleep to
top should result in better test times.

Signed-off-by: baude <bbaude@redhat.com>

Closes: #492
Approved by: rhatdan
This commit is contained in:
baude
2018-03-14 15:17:05 -05:00
committed by Atomic Bot
parent b85b217f55
commit ff091cf731
10 changed files with 42 additions and 42 deletions

View File

@ -41,7 +41,7 @@ var _ = Describe("Podman exec", func() {
})
It("podman exec simple command", func() {
setup := podmanTest.RunSleepContainer("test1")
setup := podmanTest.RunTopContainer("test1")
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
@ -51,7 +51,7 @@ var _ = Describe("Podman exec", func() {
})
It("podman exec simple command using latest", func() {
setup := podmanTest.RunSleepContainer("test1")
setup := podmanTest.RunTopContainer("test1")
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))