Make hidden dir for mock env location

This commit is contained in:
psakiev 2022-12-21 14:56:52 -07:00
parent 93760847e8
commit 23b5932f73

View File

@ -1542,7 +1542,7 @@ def get_rev():
def mutable_mock_env_path(tmpdir, mutable_config):
"""Fixture for mocking the internal spack environments directory."""
saved_path = ev.environment.default_env_path
mock_path = tmpdir.join("mock-env-path")
mock_path = tmpdir.join(".mock-env-path")
ev.environment.default_env_path = str(mock_path)
yield mock_path
ev.environment.default_env_path = saved_path