From a1d69098642e2ea653bf00acdddaf28adfd01ed8 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sat, 21 Jul 2018 14:15:00 -0700 Subject: 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 --- lib/spack/spack/test/stage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/test/stage.py b/lib/spack/spack/test/stage.py index 0d76fe5ede..077a4b0a10 100644 --- a/lib/spack/spack/test/stage.py +++ b/lib/spack/spack/test/stage.py @@ -111,7 +111,7 @@ def get_stage_path(stage, stage_name): @pytest.fixture() -def tmpdir_for_stage(mock_archive): +def tmpdir_for_stage(mock_archive, mutable_config): """Uses a temporary directory for staging""" current = spack.paths.stage_path spack.config.set( @@ -123,7 +123,7 @@ def tmpdir_for_stage(mock_archive): @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""" # Mock up a stage area that looks like this: # -- cgit v1.2.3-70-g09d2