Skip to content

Commit

Permalink
fix(build): Tests failed would exit with 0 instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvey committed Feb 25, 2022
1 parent 03f5a1b commit b5e9240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dib/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit b5e9240

Please sign in to comment.