diff options
-rw-r--r-- | lib/spack/spack/test/conftest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py index 0b02d9fe93..8fa5ff0e0e 100644 --- a/lib/spack/spack/test/conftest.py +++ b/lib/spack/spack/test/conftest.py @@ -293,7 +293,10 @@ def configuration_dir(tmpdir_factory, linux_os): content = ''.join(compilers_yaml.read()).format(linux_os) t = tmpdir.join('site', 'compilers.yaml') t.write(content) - return tmpdir + yield tmpdir + + # Once done, cleanup the directory + shutil.rmtree(str(tmpdir)) @pytest.fixture(scope='module') |