Skip to content

Commit

Permalink
fix TestValidTerminalMode
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Jul 6, 2023
1 parent 23b1b90 commit a2cc1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh/test/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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())
Expand Down

0 comments on commit a2cc1b1

Please sign in to comment.