mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
don't quit integration test tui upon error
This commit is contained in:
@ -33,7 +33,7 @@ func RunCLI(testNames []string, slow bool) {
|
|||||||
getTestsToRun(testNames),
|
getTestsToRun(testNames),
|
||||||
log.Printf,
|
log.Printf,
|
||||||
runCmdInTerminal,
|
runCmdInTerminal,
|
||||||
runAndPrintError,
|
runAndPrintFatalError,
|
||||||
getModeFromEnv(),
|
getModeFromEnv(),
|
||||||
keyPressDelay,
|
keyPressDelay,
|
||||||
)
|
)
|
||||||
@ -42,7 +42,7 @@ func RunCLI(testNames []string, slow bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func runAndPrintError(test *components.IntegrationTest, f func() error) {
|
func runAndPrintFatalError(test *components.IntegrationTest, f func() error) {
|
||||||
if err := f(); err != nil {
|
if err := f(); err != nil {
|
||||||
log.Fatalf(err.Error())
|
log.Fatalf(err.Error())
|
||||||
}
|
}
|
||||||
|
@ -380,3 +380,9 @@ func runTuiTest(test *components.IntegrationTest, mode components.Mode, keyPress
|
|||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func runAndPrintError(test *components.IntegrationTest, f func() error) {
|
||||||
|
if err := f(); err != nil {
|
||||||
|
log.Println(err.Error())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user