summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-07-21 11:41:13 +0200
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 14:24:37 -0400
commit69fcf04c69068a0610a496d479dba86d46f0901f (patch)
treef2ffbbcef31dfe3a45d6fecba81ece2e98921651 /pkg
parentce790e61b1a0a983a1900b76b1ad9864d15b1496 (diff)
downloadpodman-69fcf04c69068a0610a496d479dba86d46f0901f.tar.gz
podman-69fcf04c69068a0610a496d479dba86d46f0901f.tar.bz2
podman-69fcf04c69068a0610a496d479dba86d46f0901f.zip
fix some pkg/machine/e2e test to read stderr
Also fix the machine ssh code order to provide a better error message. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/machine/e2e/ssh_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/machine/e2e/ssh_test.go b/pkg/machine/e2e/ssh_test.go
index 6d23a024e..52d714c91 100644
--- a/pkg/machine/e2e/ssh_test.go
+++ b/pkg/machine/e2e/ssh_test.go
@@ -25,8 +25,7 @@ var _ = Describe("podman machine ssh", func() {
session, err := mb.setName(name).setCmd(ssh).run()
Expect(err).To(BeNil())
Expect(session).To(Exit(125))
- // TODO seems like stderr is not being returned; re-enabled when fixed
- // Expect(session.outputToString()).To(ContainSubstring("not exist"))
+ Expect(session.errorToString()).To(ContainSubstring("not exist"))
})
It("ssh to non-running machine", func() {
@@ -39,8 +38,7 @@ var _ = Describe("podman machine ssh", func() {
ssh := sshMachine{}
sshSession, err := mb.setName(name).setCmd(ssh).run()
Expect(err).To(BeNil())
- // TODO seems like stderr is not being returned; re-enabled when fixed
- // Expect(sshSession.outputToString()).To(ContainSubstring("is not running"))
+ Expect(sshSession.errorToString()).To(ContainSubstring("is not running"))
Expect(sshSession).To(Exit(125))
})