rad  3.0.0
Classes | Functions | Variables
etr.runner Namespace Reference

Classes

class  Runner
 ESO Test Facility Runner. More...
 

Functions

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

Variables

string CONFIG_BASE_SCHEMA_V1
 

Function Documentation

◆ parse_command()

def etr.runner.parse_command ( str  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'

◆ parse_steps()

def etr.runner.parse_steps ( str  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

◆ CONFIG_BASE_SCHEMA_V1

string etr.runner.CONFIG_BASE_SCHEMA_V1
Initial value:
1 = r"""
2 type: object
3 required:
4  - version
5 properties:
6  version:
7  type: string
8  pattern: "^[0-9]+\\.[0-9]+$"
9  randomize:
10  type: boolean
11  plugins:
12  type: array
13  items:
14  type: string
15 """