1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

make it more likely for CI to work

This commit is contained in:
Jesse Duffield
2021-04-05 12:18:21 +10:00
parent 78f17aa541
commit 8301bba8ad
2 changed files with 27 additions and 56 deletions

View File

@ -564,6 +564,14 @@ func (gui *Gui) RunAndHandleError() error {
}
func (gui *Gui) runSubprocessWithSuspense(subprocess *exec.Cmd) error {
if replaying() {
// we do not yet support running subprocesses within integration tests. So if
// we're replaying an integration test and we're inside this method, something
// has gone wrong, so we should fail
log.Fatal("opening subprocesses not yet supported in integration tests. Chances are that this test is running too fast and a subprocess is accidentally opened")
}
if err := gocui.Screen.Suspend(); err != nil {
return gui.surfaceError(err)
}