Adjust vars in mutable_mock_env_path
This commit is contained in:
parent
3c6e6e22be
commit
bc427e8435
@ -1554,11 +1554,11 @@ def get_rev():
|
|||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def mutable_mock_env_path(tmpdir_factory):
|
def mutable_mock_env_path(tmpdir_factory):
|
||||||
"""Fixture for mocking the internal spack environments directory."""
|
"""Fixture for mocking the internal spack environments directory."""
|
||||||
saved_path = ev.environment.env_path
|
saved_path = ev.environment.default_env_path
|
||||||
mock_path = tmpdir_factory.mktemp("mock-env-path")
|
mock_path = tmpdir_factory.mktemp("mock-env-path")
|
||||||
ev.environment.env_path = str(mock_path)
|
ev.environment.default_env_path = str(mock_path)
|
||||||
yield mock_path
|
yield mock_path
|
||||||
ev.environment.env_path = saved_path
|
ev.environment.default_env_path = saved_path
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
|
Loading…
Reference in New Issue
Block a user