Skip to content

Commit

Permalink
Be verbose about the error code returned from failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rickystewart committed Apr 2, 2021
1 parent ddc5747 commit 2fe8a62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/tools/builders/generate_test_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func main() {
if bzltestutil.ShouldWrap() {
err := bzltestutil.Wrap("{{.Pkgname}}")
if xerr, ok := err.(*exec.ExitError); ok {
log.Printf("Test %v exited with error code %v", os.Getenv("TEST_TARGET"), xerr.ExitCode())
os.Exit(xerr.ExitCode())
} else if err != nil {
log.Print(err)
Expand Down

0 comments on commit 2fe8a62

Please sign in to comment.