diff --git a/dib/report.go b/dib/report.go index 5217c7b2..60035420 100644 --- a/dib/report.go +++ b/dib/report.go @@ -73,7 +73,7 @@ func checkError(reports []BuildReport) error { return fmt.Errorf("one of the image build failed, see logs for more details") } - if report.BuildStatus == BuildStatusError { + if report.TestsStatus == TestsStatusFailed { return fmt.Errorf("some tests failed, see logs for more details") } }