Hotfix for config singleton initialization (#17263)

Fixes #17262
This commit is contained in:
Michael Kuhn 2020-08-10 07:48:33 +02:00 committed by GitHub
parent aa79d565b3
commit 8c1329958c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
#