Skip to content

Commit

Permalink
Fixed --short format output: Added newline
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrode committed Sep 23, 2021
1 parent f043087 commit 01d0532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ func (ats *Suite) Run() bool {
r.Leave(success)
if success {
if ats.Config.LogShort {
fmt.Printf("OK '%s' (%.3fs)", ats.manifestRelDir, elapsed.Seconds())
fmt.Printf("OK '%s' (%.3fs)\n", ats.manifestRelDir, elapsed.Seconds())
} else {
logrus.WithFields(logrus.Fields{"elapsed": elapsed.Seconds()}).Infof("[%2d] success", ats.index)
}
} else {
if ats.Config.LogShort {
fmt.Printf("FAIL '%s' (%.3fs)", ats.manifestRelDir, elapsed.Seconds())
fmt.Printf("FAIL '%s' (%.3fs)\n", ats.manifestRelDir, elapsed.Seconds())
} else {
logrus.WithFields(logrus.Fields{"elapsed": elapsed.Seconds()}).Warnf("[%2d] failure", ats.index)
}
Expand Down

0 comments on commit 01d0532

Please sign in to comment.