Package qm :: Package test :: Package classes :: Module dejagnu_base :: Class DejaGNUBase
[hide private]
[frames] | no frames]

Class DejaGNUBase

source code

A 'DejaGNUBase' is a base class for tests and resources.

Instance Methods [hide private]
 
_RecordCommand(self, result, command)
Record the execution of 'command'.
source code
 
_RecordCommandOutput(self, result, index, status, output)
Record the result of running a command.
source code
 
_SetUp(self, context)
Prepare to run a test.
source code
Method Details [hide private]

_RecordCommand(self, result, command)

source code 

Record the execution of 'command'.

'result' -- The 'Result' for the test.

'command' -- A sequence of strings, giving the arguments to a command that is about to be executed.

returns -- An integer giving the the index for this command. This value should be provided to '_RecordCommandOutput' after the command's output is known.

_RecordCommandOutput(self, result, index, status, output)

source code 

Record the result of running a command.

'result' -- The 'Result' for the test.

'index' -- An integer, return from a previous call to '_RecordCommand'.

'status' -- The exit status from the command.

'output' -- A string containing the output, if any, from the command.

_SetUp(self, context)

source code 

Prepare to run a test.

'context' -- The 'Context' in which this test will run.

This method may be overridden by derived classes, but they must call this version.