set_random_lsst_dds_partition_prefix

lsst.ts.salobj.set_random_lsst_dds_partition_prefix() None

Set a random value for environment variable LSST_DDS_PARTITION_PREFIX

Call this for each unit test method that uses SAL message passing, in order to avoid collisions with other tests. Note that pytest can run unit test methods in parallel.

The random value is generated using the os.urandom, so that it cannot be seeded. This avoids collisions with previous test runs.