Skip to content

Run all tests in a unique temporary directory

Duncan Macleod requested to merge duncanmmacleod/conda:isolate-tests into testing

This MR modifies render.py to run all test commands (not import tests) in a unique temporary directory provided by tmp_path, and insert the $SRC_DIR environment variable which points at the directory from which pytest was executed. This will make every test independent, which might prevent race conditions in tests.

This should mean we can remove the TMPDIR=$(mktemp -d) block found in lots of individual test scripts.

Edited by Duncan Macleod

Merge request reports