本文整理汇总了Python中buildbot.steps.shell.Compile.createSummary方法的典型用法代码示例。如果您正苦于以下问题:Python Compile.createSummary方法的具体用法?Python Compile.createSummary怎么用?Python Compile.createSummary使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类buildbot.steps.shell.Compile
的用法示例。
在下文中一共展示了Compile.createSummary方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createSummary
# 需要导入模块: from buildbot.steps.shell import Compile [as 别名]
# 或者: from buildbot.steps.shell.Compile import createSummary [as 别名]
def createSummary(self, log):
Compile.createSummary(self, log)
if not self.warningPattern:
return
wre = self.warningPattern
if isinstance(wre, str):
import re
wre = re.compile(wre)
interested = True
if self.partialwarningStart:
interested = False
warnings = []
for line in log.getText().split("\n"):
if line == self.partialwarningStart:
interested = True
if line == self.partialwarningEnd:
interested = False
if interested and wre.match(line):
warnings.append(line)
if warnings:
self.addCompleteLog("partialwarnings", "\n".join(warnings) + "\n")
if self.partialwarningProperty is not None:
old_count = self.getProperty(self.partialwarningProperty, 0)
self.setProperty(self.partialwarningProperty, old_count + len(warnings), "PartialWarningsCompile")
else:
old_count = self.getProperty("partial-warnings-count", 0)
self.setProperty("partial-warnings-count", old_count + len(warnings), "PartialWarningsCompile")
示例2: createSummary
# 需要导入模块: from buildbot.steps.shell import Compile [as 别名]
# 或者: from buildbot.steps.shell.Compile import createSummary [as 别名]
def createSummary(self, log):
Compile.createSummary(self, log)
self.addURL('coverage',
'http://www.fraca7.net/TaskCoach-coverage/%s/index.html' % (self.getProperty('buildername')))