os/signal: disable GUN readline to deflake TestTerminalSignal

This commit is contained in:
Zeke Lu 2022-09-27 13:31:52 +08:00
parent 9aa7107cb5
commit fc6f28e17c

View file

@ -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