summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-02 16:43:11 +0200
committerGitHub <noreply@github.com>2020-04-02 16:43:11 +0200
commitc3c6a7c8236fb43c3bc7172257b7fb15921e1668 (patch)
tree2ad7035788a494b5cbf0a945320127570643e037 /test
parentffd2d783919e6038fe55e3e6b8cf44c0b3356a96 (diff)
parentd172c987144a2140da608e81b2595a84bef4c163 (diff)
downloadpodman-c3c6a7c8236fb43c3bc7172257b7fb15921e1668.tar.gz
podman-c3c6a7c8236fb43c3bc7172257b7fb15921e1668.tar.bz2
podman-c3c6a7c8236fb43c3bc7172257b7fb15921e1668.zip
Merge pull request #5677 from giuseppe/avoid-lock-tty
exec: fix hang if control path is deleted
Diffstat (limited to 'test')
-rw-r--r--test/e2e/exec_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go
index ab806f683..5d0d6e689 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -122,6 +122,18 @@ var _ = Describe("Podman exec", func() {
Expect(session.ExitCode()).To(Equal(100))
})
+ It("podman exec terminal doesn't hang", func() {
+ setup := podmanTest.Podman([]string{"run", "-dti", fedoraMinimal, "sleep", "+Inf"})
+ setup.WaitWithDefaultTimeout()
+ Expect(setup.ExitCode()).To(Equal(0))
+
+ for i := 0; i < 5; i++ {
+ session := podmanTest.Podman([]string{"exec", "-lti", "true"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ }
+ })
+
It("podman exec pseudo-terminal sanity check", func() {
setup := podmanTest.Podman([]string{"run", "--detach", "--name", "test1", fedoraMinimal, "sleep", "+Inf"})
setup.WaitWithDefaultTimeout()