Boshi Lian
2e82bdd171
fix TestValidTerminalMode: missing output from echo SHELL $SHELL
add leading `echo` to have better compatibility
before
```
go test -run ^TestValidTerminalMode -v
=== RUN TestValidTerminalMode
session_test.go:261: echo SHELL $SHELL && stty -a && exit:
Last login: Thu Jul 6 12:24:38 2023 from 192.168.200.1
SHELL /bin/bashubuntu:~$
speed 38400 baud; rows 80; columns 40;
line = 0;
intr = ^C; quit = ^\; erase = ^?;
kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V;
discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl
-cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck
-istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret
-ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten -echo echoe echok
-echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc
logout
session_test.go:266: missing output from echo SHELL $SHELL
```
after
```
go test -run ^TestValidTerminalMode -v
=== RUN TestValidTerminalMode
session_test.go:261: echo SHELL $SHELL && stty -a && exit:
Last login: Thu Jul 6 12:24:38 2023 from 192.168.200.1
bolian@ubuntu:~$
SHELL /bin/bash
speed 38400 baud; rows 80; columns 40;
line = 0;
intr = ^C; quit = ^\; erase = ^?;
kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V;
discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl
-cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck
-istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret
-ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten -echo echoe echok
-echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc
logout
--- PASS: TestValidTerminalMode (0.06s)
```
Change-Id: If60c040edb8c78a7d86bf58a6be47636d9e8f173
GitHub-Last-Rev: a2cc1b1af09e47df82fcb8685d829dfed945e8b0
GitHub-Pull-Request: golang/crypto#264
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/508115
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Auto-Submit: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-07-11 16:17:43 +00:00
..
2023-03-20 20:33:29 +00:00
2020-02-04 10:40:54 +00:00
2023-01-30 18:50:24 +00:00
2020-11-16 15:36:03 +00:00
2023-07-11 16:17:43 +00:00
2022-03-14 23:46:59 +00:00
2019-01-31 18:25:04 +00:00
2014-04-09 13:57:52 -07:00
2017-09-25 11:19:01 +00:00
2022-04-11 22:02:26 +00:00
2022-10-05 02:52:14 +00:00
2017-11-28 17:48:09 +00:00
2023-02-15 20:22:00 +00:00
2023-02-15 20:22:00 +00:00
2023-07-10 19:57:54 +00:00
2022-03-15 16:07:06 +00:00
2022-03-14 23:46:46 +00:00
2022-03-14 23:46:59 +00:00
2019-04-18 16:56:55 +00:00
2023-07-10 19:57:54 +00:00
2023-03-20 20:33:29 +00:00
2022-04-11 22:02:26 +00:00
2022-09-19 17:36:07 +00:00
2023-04-18 17:07:48 +00:00
2022-12-12 22:32:12 +00:00
2022-03-14 23:46:59 +00:00
2022-03-14 23:46:59 +00:00
2022-03-14 23:46:46 +00:00
2023-03-13 12:45:00 +00:00
2023-06-22 14:36:59 +00:00
2015-07-15 23:39:58 +00:00
2016-04-25 17:01:51 +00:00
2022-11-04 14:06:20 +00:00
2022-09-19 17:36:07 +00:00
2020-06-02 18:02:16 +00:00
2023-07-10 19:57:54 +00:00
2022-10-10 15:29:10 +00:00
2022-09-19 17:36:07 +00:00
2019-05-10 10:41:15 +00:00
2019-05-10 10:41:15 +00:00
2018-05-14 16:50:30 +00:00
2014-04-09 13:57:52 -07:00
2018-05-14 11:17:49 +00:00
2022-03-14 23:46:59 +00:00
2018-01-11 10:11:23 +00:00
2023-02-15 20:22:00 +00:00