From c4d900b97782939ae178e0b6fb67ad890f4a24d5 Mon Sep 17 00:00:00 2001 From: Christian Walter Date: Fri, 9 Feb 2024 09:44:51 +0100 Subject: [PATCH] fix(bg-suite): fix bg-suite returning error if test failed. bg-suite always return succcess even though tests where not successful. Signed-off-by: Christian Walter --- cmd/bg-suite/cmd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bg-suite/cmd.go b/cmd/bg-suite/cmd.go index 4e05cb50..ca5ce3ea 100644 --- a/cmd/bg-suite/cmd.go +++ b/cmd/bg-suite/cmd.go @@ -186,6 +186,7 @@ func run(testGroup string, tests []*test.Test, preset *test.PreSet, interactive fmt.Printf("%-20s", a.Bold(a.Green(tests[index].Result))) } else { fmt.Printf("%-20s", a.Bold(a.Red(tests[index].Result))) + result = false } if tests[index].ErrorText != "" { fmt.Printf(" (%s)", tests[index].ErrorText)