diff options
Diffstat (limited to 'lib/spack/spack/test/stage.py')
-rw-r--r-- | lib/spack/spack/test/stage.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/spack/spack/test/stage.py b/lib/spack/spack/test/stage.py index 966c97ab5f..6edd47e5bf 100644 --- a/lib/spack/spack/test/stage.py +++ b/lib/spack/spack/test/stage.py @@ -114,15 +114,12 @@ def get_stage_path(stage, stage_name): def tmpdir_for_stage(mock_archive): """Uses a temporary directory for staging""" current = spack.paths.stage_path - spack.config.update_config( + spack.config.set( 'config', {'build_stage': [str(mock_archive.test_tmp_dir)]}, - scope='user' - ) + scope='user') yield - spack.config.update_config( - 'config', {'build_stage': [current]}, scope='user' - ) + spack.config.set('config', {'build_stage': [current]}, scope='user') @pytest.fixture() @@ -138,9 +135,8 @@ def mock_archive(tmpdir, monkeypatch): # test_tmp_path = tmpdir.join('tmp') # set _test_tmp_path as the default test directory to use for stages. - spack.config.update_config( - 'config', {'build_stage': [str(test_tmp_path)]}, scope='user' - ) + spack.config.set( + 'config', {'build_stage': [str(test_tmp_path)]}, scope='user') archive_dir = tmpdir.join('test-files') archive_name = 'test-files.tar.gz' |