summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-08-10 07:48:33 +0200
committerGitHub <noreply@github.com>2020-08-10 07:48:33 +0200
commit8c1329958c0d414305b185f37bd6d13814cd98c8 (patch)
tree45671941ddfd5ca07d2a41adfdeba6e7c1d1da66 /lib
parentaa79d565b3a4ae5b27e7bd3a2dca9ac83b6a8954 (diff)
downloadspack-8c1329958c0d414305b185f37bd6d13814cd98c8.tar.gz
spack-8c1329958c0d414305b185f37bd6d13814cd98c8.tar.bz2
spack-8c1329958c0d414305b185f37bd6d13814cd98c8.tar.xz
spack-8c1329958c0d414305b185f37bd6d13814cd98c8.zip
Hotfix for config singleton initialization (#17263)
Fixes #17262
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/conftest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py
index 0c5689ee53..0e97b51cde 100644
--- a/lib/spack/spack/test/conftest.py
+++ b/lib/spack/spack/test/conftest.py
@@ -287,6 +287,10 @@ def _skip_if_missing_executables(request):
# FIXME: there's some weird interaction with compilers during concretization.
spack.architecture.real_platform = spack.architecture.platform
spack.architecture.platform = lambda: spack.platforms.test.Test()
+# FIXME: Since we change the architecture above, we have to (re)initialize
+# FIXME: the config singleton. If it gets initialized too early with the
+# FIXME: actual architecture, tests will fail.
+spack.config.config = spack.config._config()
#