don't quit integration test tui upon error

This commit is contained in:
Jesse Duffield committed 2022-09-09 20:55:47 -07:00
1 parent 47f84b6aea
commit 79620fc6cf
2 files changed
+8 -2

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ func RunCLI(testNames []string, slow bool) {
getTestsToRun(testNames),
log.Printf,
runCmdInTerminal,
runAndPrintError,
runAndPrintFatalError,
getModeFromEnv(),
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 {
log.Fatalf(err.Error())
}
+6
View File
@@ -380,3 +380,9 @@ func runTuiTest(test *components.IntegrationTest, mode components.Mode, keyPress
log.Println(err.Error())
}
}
func runAndPrintError(test *components.IntegrationTest, f func() error) {
if err := f(); err != nil {
log.Println(err.Error())
}
}