mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
os/signal: disable GUN readline to deflake TestTerminalSignal
This commit is contained in:
parent
9aa7107cb5
commit
fc6f28e17c
|
@ -89,7 +89,7 @@ func TestTerminalSignal(t *testing.T) {
|
|||
// Start an interactive shell.
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
cmd := exec.CommandContext(ctx, bash, "--norc", "--noprofile", "-i")
|
||||
cmd := exec.CommandContext(ctx, bash, "--norc", "--noprofile", "--noediting", "-i")
|
||||
// Clear HISTFILE so that we don't read or clobber the user's bash history.
|
||||
cmd.Env = append(os.Environ(), "HISTFILE=")
|
||||
cmd.Stdin = procTTY
|
||||
|
|
Loading…
Reference in a new issue