summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorDebarshi Ray <rishi@fedoraproject.org>2019-09-10 21:39:12 +0200
committerDebarshi Ray <rishi@fedoraproject.org>2019-09-12 18:34:56 +0200
commit137ec81634b5357f1fc0fc714b470a6981fba0ba (patch)
treecd664c3012b12cbd0e739610e20c27b1730f2bd8 /test/e2e
parentafa3d11381eb23820c653c44d3d249041bc6a833 (diff)
downloadpodman-137ec81634b5357f1fc0fc714b470a6981fba0ba.tar.gz
podman-137ec81634b5357f1fc0fc714b470a6981fba0ba.tar.bz2
podman-137ec81634b5357f1fc0fc714b470a6981fba0ba.zip
Test that PTYs created by 'podman exec --tty' have the ONLCR flag
Signed-off-by: Debarshi Ray <rishi@fedoraproject.org>
Diffstat (limited to 'test/e2e')
-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 f3190978c..670269eab 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -120,6 +120,18 @@ var _ = Describe("Podman exec", func() {
Expect(session.ExitCode()).To(Equal(100))
})
+ It("podman exec pseudo-terminal sanity check", func() {
+ setup := podmanTest.Podman([]string{"run", "--detach", "--name", "test1", fedoraMinimal, "sleep", "+Inf"})
+ setup.WaitWithDefaultTimeout()
+ Expect(setup.ExitCode()).To(Equal(0))
+
+ session := podmanTest.Podman([]string{"exec", "--interactive", "--tty", "test1", "/usr/bin/stty", "--all"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ match, _ := session.GrepString(" onlcr")
+ Expect(match).Should(BeTrue())
+ })
+
It("podman exec simple command with user", func() {
setup := podmanTest.RunTopContainer("test1")
setup.WaitWithDefaultTimeout()