[Buildbot-devel] createSummary and stderr on Windows

Wade Brainerd WBrainerd at activision.com
Mon Apr 30 12:58:06 UTC 2007


Hi there, I'm trying to implement the standard createSummary for GCC 
warnings and errors.  Unfortunately, createSummary seems to miss 
everything coming from stderr.

import re
   
class GCCCompile(step.ShellCommand):
    warning_line_re = re.compile(r"^.+:\d+: warning:", re.IGNORECASE)
    error_line_re = re.compile(r"^.+:\d+: ")
    def createSummary(self, log):
        errors = []
        warnings = []
        for line in log.readlines():
            if self.warning_line_re.match(line):
                warnings.append(line)
            elif self.error_line_re.match(line):
                errors.append(line)
        if len(warnings):
            self.addCompleteLog('warnings', "".join(warnings))
        if len(errors):
            self.addCompleteLog('errors', "".join(errors))

f1.addStep(GCCCompile, command = ["echo", "filename:0: warning: 
Description"])

The above test line works fine, but when I run GCC (or Doxygen, which 
follows the same error convention) nothing is printed to the warnings or 
errors log.

I was using step.Compile at first, but it doesn't appear to actually 
provide the service that is documented :)

Thanks,

-- 
Wade Brainerd -- Technical Director
Activision Central Technology
Contact Info <http://www.wadeb.com/contactwade.html>


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20070430/db53a1e5/attachment.html>


More information about the devel mailing list