Runs a script repeatedly for all declared runmodes and succeeds if the scripts do. More...
Public Member Functions | |
def | run (self, clean=True, extra_opts=None, interpreter=None, args, kwargs) |
The method to run the test. More... | |
Public Member Functions inherited from OutputManager | |
def | __init__ (self, args, kwargs) |
Arguments are passed through to OptionsManager. | |
def | runmodes (self, section=None) |
Return runmodes. More... | |
def | output (self, runmode, section=None, statefile=False) |
The name of the output file for a given runmode. More... | |
def | clean (self, runmode) |
Delete the trajectory file and state file for a given runmode. More... | |
Public Member Functions inherited from OptionsManager | |
def | __init__ (self, options, cp) |
def | get_option (self, name, default=None, required=False, section=None) |
Get configuration file keys in a safe way. More... | |
Additional Inherited Members | |
Public Attributes inherited from OutputManager | |
outputdir | |
All output files end up here. More... | |
expecteddir | |
Where to look for pre-run simulations to compare test runs to. More... | |
Public Attributes inherited from OptionsManager | |
options | |
optparse.Values: command line options | |
cp | |
ConfigParser: configuration file keys. | |
test | |
The name of the current test. | |
Runs a script repeatedly for all declared runmodes and succeeds if the scripts do.
Configuration file keys this class understands.
Definition at line 239 of file testdriver.py.
def run | ( | self, | |
clean = True , |
|||
extra_opts = None , |
|||
interpreter = None , |
|||
args, | |||
kwargs | |||
) |
The method to run the test.
clean | (optional) Boolean : Whether to remove old output before running the test. |
extra_opts | (optional) List : Additional command line options appended to the script call. |
interpreter | (optional) str : Interpreter to run the command through, e.g. python . |
args | passed through to subprocess.call |
kwargs | passed through to subprocess.call |
This method terminates the test driver with a return value equal to that of the script call if one of the scripts fail.
Definition at line 246 of file testdriver.py.