Skip to content

Commit 7e41873

Browse files
committed
Minor edit
1 parent beb43d9 commit 7e41873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/envtest/printer/prow.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ func AddReport(report ginkgo.Report, suiteName string) {
4646
if os.Getenv("CI") != "" && artifactsDir != "" {
4747
path := filepath.Join(artifactsDir, fmt.Sprintf("junit_%s_%d.xml", suiteName, report.SuiteConfig.ParallelProcess))
4848
err := reporters.GenerateJUnitReport(report, path)
49-
fmt.Printf("Failed to generate report\n\t%s", err.Error())
49+
if err != nil {
50+
fmt.Printf("Failed to generate report\n\t%s", err.Error())
51+
}
5052
}
5153
}

0 commit comments

Comments
 (0)