rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
etr.runner Namespace Reference

Classes

class  Runner
 ESO Test Facility Runner. More...
 

Functions

def parse_steps
 Parse value and return a list with steps parsed with the following rules: More...
 
def parse_command
 Parses the command enum strings and returns a Command enum. More...
 

Variables

list __all__ = ["Runner"]
 
tuple _logger
 
string CONFIG_BASE_SCHEMA_V1 = r""
 

Function Documentation

def etr.runner.parse_command (   scmd)

Parses the command enum strings and returns a Command enum.

parse_command('test').name

'TEST'

parse_command('clean').name

'CLEAN'

parse_command('info').name

'INFO'

def etr.runner.parse_steps (   val)

Parse value and return a list with steps parsed with the following rules:

Single step e.g. 'setup':

[s.name for s in parse_steps('setup')]

['SETUP']

Starting at a step and continuing to the end: 'start:'

[s.name for s in parse_steps('setup:')]

['SETUP', 'RUN', 'TEARDOWN']

Starting from the beginning and run to specified step ':end':

[s.name for s in parse_steps(':run')]

['SETUP', 'RUN']

Starting from specified and ending at a specified step:

[s.name for s in parse_steps('run:teardown')]

['RUN', 'TEARDOWN']

Executing steps in reverse order is illegal:

parse_steps('teardown:run') # doctest: +ELLIPSIS

Traceback (most recent call last): ... etr Can only run the step sequence in order...

Variable Documentation

list etr.runner.__all__ = ["Runner"]
etr.runner._logger
string etr.runner.CONFIG_BASE_SCHEMA_V1 = r""