From 8c1329958c0d414305b185f37bd6d13814cd98c8 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Mon, 10 Aug 2020 07:48:33 +0200 Subject: Hotfix for config singleton initialization (#17263) Fixes #17262 --- lib/spack/spack/test/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) 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() # -- cgit v1.2.3-70-g09d2