bugfix: stage test no longer modifies ~/.spack/config.yaml
- two stage tests weren't properly using the mutable_config fixture. - this caused running `spack test` to modify the user's config.yaml
This commit is contained in:
parent
0e4909cad8
commit
a1d6909864
@ -111,7 +111,7 @@ def get_stage_path(stage, stage_name):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def tmpdir_for_stage(mock_archive):
|
def tmpdir_for_stage(mock_archive, mutable_config):
|
||||||
"""Uses a temporary directory for staging"""
|
"""Uses a temporary directory for staging"""
|
||||||
current = spack.paths.stage_path
|
current = spack.paths.stage_path
|
||||||
spack.config.set(
|
spack.config.set(
|
||||||
@ -123,7 +123,7 @@ def tmpdir_for_stage(mock_archive):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def mock_archive(tmpdir, monkeypatch):
|
def mock_archive(tmpdir, monkeypatch, mutable_config):
|
||||||
"""Creates a mock archive with the structure expected by the tests"""
|
"""Creates a mock archive with the structure expected by the tests"""
|
||||||
# Mock up a stage area that looks like this:
|
# Mock up a stage area that looks like this:
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user