Skip to content

Commit

Permalink
Include the number of warnings in the "warnings" link text
Browse files Browse the repository at this point in the history
Fixes #644
  • Loading branch information
Dustin J. Mitchell committed Oct 4, 2010
1 parent 44377d8 commit f9c092a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/steps/shell.py
Expand Up @@ -543,7 +543,8 @@ def createSummary(self, log):
# If there were any warnings, make the log if lines with warnings
# available
if self.warnCount:
self.addCompleteLog("warnings", "\n".join(warnings) + "\n")
self.addCompleteLog("warnings (%d)" % self.warnCount,
"\n".join(warnings) + "\n")

warnings_stat = self.step_status.getStatistic('warnings', 0)
self.step_status.setStatistic('warnings', warnings_stat + self.warnCount)
Expand Down

0 comments on commit f9c092a

Please sign in to comment.