tracetools_test.mark_process module

tracetools_test.mark_process.get_corresponding_trace_test_events(events: List[tracetools_read.DictEvent], trace_test_id: str) List[tracetools_read.DictEvent]

Get trace events corresponding to the current trace test.

Parameters:
  • events – all of the trace events

  • trace_test_id – the trace test ID

Returns:

the relevant trace events corresponding to the given test

tracetools_test.mark_process.get_trace_test_id(id_prefix: str) str

Get a trace test ID value for this test.

The environment for the processes spawned by the current test (e.g., test application process) should include the environment variable with name $TRACE_TEST_ID_ENV_VAR and with this value.

The string ID prefix should uniquely-enough represent the test.

Parameters:

id_prefix – a string ID prefix

Returns:

trace test ID for this test