From fc6f28e17c3d6c5f16f1cc047e42ac0ceb60e769 Mon Sep 17 00:00:00 2001 From: Zeke Lu Date: Tue, 27 Sep 2022 13:31:52 +0800 Subject: [PATCH] os/signal: disable GUN readline to deflake TestTerminalSignal --- src/os/signal/signal_cgo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/signal/signal_cgo_test.go b/src/os/signal/signal_cgo_test.go index 67bad66e0b..3ce494c5e7 100644 --- a/src/os/signal/signal_cgo_test.go +++ b/src/os/signal/signal_cgo_test.go @@ -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