Skip to content
Snippets Groups Projects
Unverified Commit 8c132995 authored by Michael Kuhn's avatar Michael Kuhn Committed by GitHub
Browse files

Hotfix for config singleton initialization (#17263)

Fixes #17262
parent aa79d565
No related branches found
No related tags found
No related merge requests found
...@@ -287,6 +287,10 @@ def _skip_if_missing_executables(request): ...@@ -287,6 +287,10 @@ def _skip_if_missing_executables(request):
# FIXME: there's some weird interaction with compilers during concretization. # FIXME: there's some weird interaction with compilers during concretization.
spack.architecture.real_platform = spack.architecture.platform spack.architecture.real_platform = spack.architecture.platform
spack.architecture.platform = lambda: spack.platforms.test.Test() 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()
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment