Package buildbot :: Package steps :: Module shell :: Class WarningCountingShellCommand
[hide private]
[frames] | no frames]

Class WarningCountingShellCommand

source code

   process.buildstep.BuildStep --+        
                                 |        
process.buildstep.LoggingBuildStep --+    
                                     |    
                          ShellCommand --+
                                         |
                                        WarningCountingShellCommand
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, warningPattern=None, **kwargs) source code
 
createSummary(self, log)
To create summary logs, do something like this: warnings = grep('^Warning:', log.getText()) self.addCompleteLog('warnings', warnings)
source code
 
evaluateCommand(self, cmd)
Decide whether the command was SUCCESS, WARNINGS, or FAILURE.
source code

Inherited from ShellCommand: checkForOldSlaveAndLogfiles, describe, setCommand, setDefaultWorkdir, setupEnvironment, start

Inherited from process.buildstep.LoggingBuildStep: checkDisconnect, commandComplete, getText, getText2, interrupt, maybeGetText2, setStatus, setupLogfiles, startCommand

Inherited from process.buildstep.BuildStep: acquireLocks, addCompleteLog, addFactoryArguments, addHTMLLog, addLog, addLogObserver, addURL, failed, finished, getLog, getProperty, getSlaveName, getStepFactory, releaseLocks, runCommand, setBuild, setBuildSlave, setProgress, setProperty, setStepStatus, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

Class Variables [hide private]
  warnCount = 0
  warningPattern = '.*warning[: ].*'

Inherited from ShellCommand: description, descriptionDone, flunkOnFailure, name

Inherited from process.buildstep.LoggingBuildStep: parms, progressMetrics

Inherited from process.buildstep.BuildStep: alwaysRun, doStepIf, flunkOnWarnings, haltOnFailure, locks, useProgress, warnOnFailure, warnOnWarnings

Instance Variables [hide private]

Inherited from ShellCommand: command, logfiles

Inherited from process.buildstep.BuildStep: build, progress, step_status

Method Details [hide private]

__init__(self, warningPattern=None, **kwargs)
(Constructor)

source code 
Overrides: process.buildstep.BuildStep.__init__

createSummary(self, log)

source code 

To create summary logs, do something like this: warnings = grep('^Warning:', log.getText()) self.addCompleteLog('warnings', warnings)

Overrides: process.buildstep.LoggingBuildStep.createSummary
(inherited documentation)

evaluateCommand(self, cmd)

source code 

Decide whether the command was SUCCESS, WARNINGS, or FAILURE. Override this to, say, declare WARNINGS if there is any stderr activity, or to say that rc!=0 is not actually an error.

Overrides: process.buildstep.LoggingBuildStep.evaluateCommand
(inherited documentation)