aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh/test/session_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh/test/session_test.go b/ssh/test/session_test.go
index e98b786..b44877e 100644
--- a/ssh/test/session_test.go
+++ b/ssh/test/session_test.go
@@ -248,7 +248,7 @@ func TestValidTerminalMode(t *testing.T) {
t.Fatalf("session failed: %s", err)
}
- if _, err := io.WriteString(stdin, "echo SHELL $SHELL && stty -a && exit\n"); err != nil {
+ if _, err := io.WriteString(stdin, "echo && echo SHELL $SHELL && stty -a && exit\n"); err != nil {
t.Fatal(err)
}
@@ -258,7 +258,7 @@ func TestValidTerminalMode(t *testing.T) {
}
if testing.Verbose() {
- t.Logf("echo SHELL $SHELL && stty -a && exit:\n%s", buf)
+ t.Logf("echo && echo SHELL $SHELL && stty -a && exit:\n%s", buf)
}
shellLine := regexp.MustCompile("(?m)^SHELL (.*)$").FindStringSubmatch(buf.String())