Skip to content
Myr

Fix flaky test case: test_interrupt_execute

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Try to avoid extraneous INT signal

authored by Junegunn Choi · committed by Junegunn Choi · parent 2048fd4 · Browse files · 1 file+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−4 removed

  • other:+2 added−4 removed

1 file+2 added−4 removed

modified:src/terminal.go+2 added-4 removed
1720 unmodified lines
1721 return1722 }1723 command := t.replacePlaceholder(template, forcePlus, string(t.input), list)1724 cmd := util.ExecCommand(command, false)1725 t.executing.Set(true)1726 if !background {1727 cmd.Stdin = tui.TtyIn()1728 cmd.Stdout = os.Stdout1729 cmd.Stderr = os.Stderr1730 t.tui.Pause(true)1730 t.executing.Set(true)1731 cmd.Run()1732 t.executing.Set(false)1732 t.tui.Resume(true, false)1733 t.redraw()1734 t.refresh()1735 } else {1736 t.tui.Pause(false)1738 t.executing.Set(true)1737 cmd.Run()1740 t.executing.Set(false)1738 t.tui.Resume(false, false)1739 }1740 t.executing.Set(false)1741 cleanTemporaryFiles()1742}17431744func (t *Terminal) hasPreviewer() bool {
997 unmodified lines