From 82fc47d6faf28aa58badedaad19cab48a2855b82 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 13 Sep 2019 12:59:26 +0200 Subject: [PATCH] Test that PTYs created by 'podman exec --tty' have non-zero size Signed-off-by: Debarshi Ray --- test/e2e/exec_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go index 670269eabb..6fa132982c 100644 --- a/test/e2e/exec_test.go +++ b/test/e2e/exec_test.go @@ -130,6 +130,12 @@ var _ = Describe("Podman exec", func() { Expect(session.ExitCode()).To(Equal(0)) match, _ := session.GrepString(" onlcr") Expect(match).Should(BeTrue()) + + session = podmanTest.Podman([]string{"exec", "--interactive", "--tty", "test1", "/usr/bin/stty", "size"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + match, _ = session.GrepString("0 0") + Expect(match).Should(BeFalse()) }) It("podman exec simple command with user", func() {