diff --git a/pkg/integration/clients/cli.go b/pkg/integration/clients/cli.go index eedb82984..17c379c85 100644 --- a/pkg/integration/clients/cli.go +++ b/pkg/integration/clients/cli.go @@ -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()) } diff --git a/pkg/integration/clients/tui.go b/pkg/integration/clients/tui.go index 9348cd1f3..96ffed8b0 100644 --- a/pkg/integration/clients/tui.go +++ b/pkg/integration/clients/tui.go @@ -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()) + } +}