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

Class Test

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

Instance Methods
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
describe(self, done=False)
Return a list of short strings to describe this step, for the status display.
source code

Inherited from WarningCountingShellCommand: __init__, addSuppression, createSummary, evaluateCommand, maybeAddWarning, start, uploadDone, warnExtractFromRegexpGroups, warnExtractWholeLine

Inherited from ShellCommand: buildCommandKwargs, getWorkdir, setBuild, setCommand, setDefaultWorkdir, setStepStatus, setupEnvironment

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

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

Inherited from __providedBy__, getProperties, getProperty, hasProperty, has_key, render, setProperty

Class Variables
  name = 'test'
  warnOnFailure = 1
  description = ['testing']
  descriptionDone = ['test']
  command = ['make', 'test']
a list of renderable objects (typically strings or WithProperties instances).

Inherited from WarningCountingShellCommand: commentEmptyLineRe, directoryEnterPattern, directoryLeavePattern, renderables, suppressionFile, suppressionLineRe, warnCount, warningPattern

Inherited from ShellCommand: flunkOnFailure

Inherited from process.buildstep.LoggingBuildStep: cmd, parms, progressMetrics

Inherited from process.buildstep.BuildStep: __implemented__, alwaysRun, build, doStepIf, flunkOnWarnings, haltOnFailure, hideStepIf, locks, progress, set_runtime_properties, step_status, useProgress, warnOnWarnings

Instance Variables

Inherited from ShellCommand: lazylogfiles, logfiles

Method Details

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.

  • 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.BuildStep.describe