mirror of https://github.com/golang/go.git
os/signal: disable GNU readline to deflake TestTerminalSignal
Fixes #55903.
Change-Id: I992865277fb6526929d6c7db2b3b8d22ca0760f2
GitHub-Last-Rev: fc6f28e17c
GitHub-Pull-Request: golang/go#55904
Reviewed-on: https://go-review.googlesource.com/c/go/+/435735
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
4350c4a131
commit
d7e663d909
|
|
@ -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 New Issue