本文整理汇总了Python中buildbot.process.buildstep.LogLineObserver类的典型用法代码示例。如果您正苦于以下问题:Python LogLineObserver类的具体用法?Python LogLineObserver怎么用?Python LogLineObserver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LogLineObserver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, **kwargs):
LogLineObserver.__init__(self, **kwargs) # always upcall!
self.numTotal = 0
self.numPassed = 0
self.numFailed = 0
self.numSkipped = 0
self.failed = []
示例2: __init__
def __init__(self, **kwargs):
ShellCommand.__init__(self, **kwargs)
LogLineObserver.__init__(self)
self.addLogObserver("stdio", self)
self.metrics = {"run": 0, "Failures": 0, "Errors": 0, "Incomplete": 0, "Skipped": 0, "Time elapsed": 0}
self.progressMetrics += tuple(self.metrics.keys())
self.phpError = False
示例3: __init__
def __init__(self):
LogLineObserver.__init__(self)
self.in_fail_output = False
self.re_fail = [
(re.compile('^(FAIL:) (.*)$'), 1),
(re.compile('^(ERROR:) (.*)$'), 1)
]
self.re_startendtest = re.compile('^------------------------------|^=========================')
示例4: __init__
def __init__(self, textLimit=5, testNameLimit=16):
self.textLimit = textLimit
self.testNameLimit = testNameLimit
self.numTests = 0
self.testFail = None
self.failList = []
self.warnList = []
LogLineObserver.__init__(self)
示例5: __init__
def __init__(self, maxLogs=None):
LogLineObserver.__init__(self)
self.resultCounts = {}
self.maxLogs = maxLogs
self.numLogs = 0
# If non-null, a tuple of the last test code and name.
self.lastTestResult = None
# If non-null, a list of lines in the current log.
self.activeVerboseLog = None
示例6: __init__
def __init__(self, maxLogs=None, parseSummaryOnly=False):
LogLineObserver.__init__(self)
self.resultCounts = {}
self.maxLogs = maxLogs
self.numLogs = 0
# If non-null, a tuple of the last test code and name.
self.lastTestResult = None
# If non-null, a list of lines in the current log.
self.activeVerboseLog = None
# Current line will be parsed as result steps only if parserStarted is True
self.parserStarted = not parseSummaryOnly
self.simplifiedLog = False
示例7: __init__
def __init__(self, build):
LogLineObserver.__init__(self)
self.target_build = build
示例8: __init__
def __init__(self, re):
self._line_re = re
LogLineObserver.__init__(self)
示例9: __init__
def __init__(self, buildstep):
LogLineObserver.__init__(self)
self.buildstep = buildstep
示例10: __init__
def __init__(self):
LogLineObserver.__init__(self)
self.resultCounts = {}
self.currentLines = ""
self.currentFailed = False
self.anyFailed = False
示例11: __init__
def __init__(self, maxLogs=None):
LogLineObserver.__init__(self)
self.timingMet = True
示例12: __init__
def __init__(self, logwarnings, logerrors, **kwargs):
LogLineObserver.__init__(self, **kwargs)
self.logwarnings = logwarnings
self.logerrors = logerrors
self.stdoutParser.delimiter = "\r\n"
self.stderrParser.delimiter = "\r\n"
示例13: __init__
def __init__(self):
LogLineObserver.__init__(self)
self.testName = ""
示例14: __init__
def __init__(self, **kwargs):
LogLineObserver.__init__(self, **kwargs)
self.success = True
示例15: __init__
def __init__(self, step):
self.step = step
self.testOut = {}
self.inTest = None
LogLineObserver.__init__(self)