Base TPM Self Check Test

An implementation of self check procedures for a station.

class TestResult(value)

Enumerate for test results.

class TpmSelfCheckTest(component_manager, logger, tile_trls, subrack_trls, daq_trl)

Base class for Tpm self check tests.

__init__(component_manager, logger, tile_trls, subrack_trls, daq_trl)

Initialise a new instance.

Parameters:
  • logger (Logger) – a logger for this model to use.

  • tile_trls (list[str]) – trls of tiles the station has.

  • subrack_trls (list[str]) – trls of subracks the station has.

  • daq_trl (str) – trl of the daq the station has.

  • component_manager (SpsStationComponentManager) – SpsStation component manager under test.

check_requirements()

Check requirements for the test before running.

Return type:

tuple[bool, str]

Returns:

true if all our proxies are in ENGINEERING mode.

run_test()

Run the self-check test, collect results.

Return type:

tuple[TestResult, str]

Returns:

test result.

abstract test()

This should be written by sub-classes.

Raises:

NotImplementedError – this is abstract.

Return type:

None