Subunit Trace¶
Trace a subunit stream in reasonable detail and high accuracy.
-
stestr.subunit_trace.
cleanup_test_name
(name, strip_tags=True, strip_scenarios=False)[source]¶ Clean up the test name for display.
By default we strip out the tags in the test because they don’t help us in identifying the test that is run to it’s result.
Make it possible to strip out the testscenarios information (not to be confused with tempest scenarios) however that’s often needed to indentify generated negative tests.
-
stestr.subunit_trace.
find_worker
(test)[source]¶ Get the worker number.
If there are no workers because we aren’t in a concurrent environment, assume the worker number is 0.