Skip to content

Commit

Permalink
fix(cmd): bg-suite should not return an error in non-interactive mode
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris committed Jan 24, 2024
1 parent ae48689 commit 4860e85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/bg-suite/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4860e85

Please sign in to comment.