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

Class Test

source code

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

Instance Methods [hide private]
 
describe(self, done=False)
Return a list of short strings to describe this step, for the status display.
source code
 
setTestResults(self, total=0, failed=0, passed=0, warnings=0)
Called by subclasses to set the relevant statistics; this actually adds to any statistics already present
source code

Inherited from WarningCountingShellCommand: __init__, createSummary, evaluateCommand

Inherited from ShellCommand: checkForOldSlaveAndLogfiles, 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]
  command = ['make', 'test']
a list of renderable objects (typically strings or WithProperties instances).
  description = ['testing']
  descriptionDone = ['test']
  name = 'test'
  warnOnFailure = 1

Inherited from WarningCountingShellCommand: warnCount, warningPattern

Inherited from ShellCommand: flunkOnFailure

Inherited from process.buildstep.LoggingBuildStep: parms, progressMetrics

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

Instance Variables [hide private]

Inherited from ShellCommand: logfiles

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

Method Details [hide private]

describe(self, done=False)

source code 

Return a list of short strings to describe this step, for the status display. This uses the first few words of the shell command. You can replace this by setting .description in your subclass, or by overriding this method to describe the step better.

Parameters:
  • done - whether the command is complete or not, to improve the way the command is described. done=False is used while the command is still running, so a single imperfect-tense verb is appropriate ('compiling', 'testing', ...) done=True is used when the command has finished, and the default getText() method adds some text, so a simple noun is appropriate ('compile', 'tests' ...)
Overrides: process.buildstep.LoggingBuildStep.describe