[Buildbot-commits] buildbot/buildbot/process step_twisted.py,1.68,1.69
Brian Warner
warner at users.sourceforge.net
Mon Oct 24 03:48:33 UTC 2005
Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29737/buildbot/process
Modified Files:
step_twisted.py
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-370
Creator: Brian Warner <warner at lothar.com>
fix up the Twisted ProcessDocs buildstep, add TryScheduler
* buildbot/process/step_twisted.py (ProcessDocs.createSummary):
when creating the list of warning messages, include the line
immediately after each WARNING: line, since that's usually where
the file and line number wind up.
* docs/examples/twisted_master.cfg: OS-X slave now does QT, add a
TryScheduler
--This line, and those below, will be ignored--
Files to commit:
<can't compute list>
This list might be incomplete or outdated if editing the log
message was not invoked from an up-to-date changes buffer!
Index: step_twisted.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/step_twisted.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- step_twisted.py 24 Apr 2005 21:30:25 -0000 1.68
+++ step_twisted.py 24 Oct 2005 03:48:31 -0000 1.69
@@ -616,7 +616,20 @@
def createSummary(self, log):
output = log.getText()
# hlint warnings are of the format: 'WARNING: file:line:col: stuff
+ # latex warnings start with "WARNING: LaTeX Warning: stuff", but
+ # sometimes wrap around to a second line.
lines = output.split("\n")
+ warningLines = []
+ wantNext = False
+ for line in lines:
+ wantThis = wantNext
+ wantNext = False
+ if line.startswith("WARNING: "):
+ wantThis = True
+ wantNext = True
+ if wantThis:
+ warningLines.append(line)
+
warningLines = filter(lambda line: line.find("WARNING: ") == 0, lines)
if warningLines:
self.addCompleteLog("warnings", "".join(warningLines))
More information about the Commits
mailing list