diff --git a/tests/fixtures.py b/tests/fixtures.py index 193c17b25..a8288bf91 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -29,7 +29,9 @@ __attempts = {} @pytest.fixture(scope="session") def test_base_dir(): - directory = tempfile.mkdtemp(prefix='ltests-') + d = os.getenv("TEST_DIR", "/tmp") + + directory = tempfile.mkdtemp(prefix='ltests-', dir=d) print("Running tests in {}".format(directory)) yield directory