"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/steps/shell.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

shell.py  (buildbot-3.0.2):shell.py  (buildbot-3.1.0)
skipping to change at line 180 skipping to change at line 180
# check validity of arguments being passed to RemoteShellCommand # check validity of arguments being passed to RemoteShellCommand
valid_rsc_args = [ valid_rsc_args = [
'command', 'command',
'env', 'env',
'want_stdout', 'want_stdout',
'want_stderr', 'want_stderr',
'timeout', 'timeout',
'maxTime', 'maxTime',
'sigtermTime', 'sigtermTime',
'logfiles', 'logfiles',
'lazylogfiles',
'usePTY', 'usePTY',
'logEnviron', 'logEnviron',
'collectStdout', 'collectStdout',
'collectStderr', 'collectStderr',
'interruptSignal', 'interruptSignal',
'initialStdin', 'initialStdin',
'decodeRC', 'decodeRC',
'stdioLogName', 'stdioLogName',
'workdir', 'workdir',
] + buildstep.BuildStep.parms ] + buildstep.BuildStep.parms
skipping to change at line 446 skipping to change at line 447
yield self.finish_logs() yield self.finish_logs()
yield self.createSummary() yield self.createSummary()
return self.evaluateCommand(cmd) return self.evaluateCommand(cmd)
@defer.inlineCallbacks @defer.inlineCallbacks
def finish_logs(self): def finish_logs(self):
stdio_log = yield self.getLog('stdio') stdio_log = yield self.getLog('stdio')
yield stdio_log.finish() yield stdio_log.finish()
@defer.inlineCallbacks
def createSummary(self): def createSummary(self):
""" """
Match log lines against warningPattern. Match log lines against warningPattern.
Warnings are collected into another log for this step, and the Warnings are collected into another log for this step, and the
build-wide 'warnings-count' is updated.""" build-wide 'warnings-count' is updated."""
# If there were any warnings, make the log if lines with warnings # If there were any warnings, make the log if lines with warnings
# available # available
if self.warnCount: if self.warnCount:
self.addCompleteLog("warnings (%d)" % self.warnCount, yield self.addCompleteLog("warnings (%d)" % self.warnCount,
"\n".join(self.loggedWarnings) + "\n") "\n".join(self.loggedWarnings) + "\n")
warnings_stat = self.getStatistic('warnings', 0) warnings_stat = self.getStatistic('warnings', 0)
self.setStatistic('warnings', warnings_stat + self.warnCount) self.setStatistic('warnings', warnings_stat + self.warnCount)
old_count = self.getProperty("warnings-count", 0) old_count = self.getProperty("warnings-count", 0)
self.setProperty( self.setProperty(
"warnings-count", old_count + self.warnCount, "WarningCountingShellC ommand") "warnings-count", old_count + self.warnCount, "WarningCountingShellC ommand")
def evaluateCommand(self, cmd): def evaluateCommand(self, cmd):
result = cmd.results() result = cmd.results()
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)