Skip to content

Commit

Permalink
Do not use klog.Fatalf as it prints stacktrace. Use os.Exit(1) instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxddr committed Apr 23, 2019
1 parent 689eca2 commit 00311ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ build
*.un~
Session.vim
.netrwhist

clusterloader2/junit.xml
clusterloader2/clusterloader
3 changes: 2 additions & 1 deletion clusterloader2/cmd/clusterloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func main() {
}
}
if suiteSummary.NumberOfFailedSpecs > 0 {
klog.Fatalf("%d tests have failed!", suiteSummary.NumberOfFailedSpecs)
klog.Errorf("%d tests have failed!", suiteSummary.NumberOfFailedSpecs)
os.Exit(1)
}
}

0 comments on commit 00311ee

Please sign in to comment.