diff --git a/cmd/bg-suite/cmd.go b/cmd/bg-suite/cmd.go index a98a13c4..cafff018 100644 --- a/cmd/bg-suite/cmd.go +++ b/cmd/bg-suite/cmd.go @@ -164,7 +164,13 @@ func run(testGroup string, tests []*test.Test, preset *test.PreSet, interactive } } data, _ := json.MarshalIndent(t, "", "") - os.WriteFile(logfile, data, 0o664) + err := os.WriteFile(logfile, data, 0o664) + if err != nil { + fmt.Println("Error writing log file") + } + + // If not interactive, we just print the results and return + result = true } for index := range tests {