Pass tests argument to solver method when concretizing together (#35290)

to make the workaround for #29447 work with `concretizer:unify:true` option
This commit is contained in:
elenimath 2023-02-20 11:21:24 +02:00 committed by Massimiliano Culpo
parent de4cf49e95
commit 19186a5e44

View File

@ -743,9 +743,7 @@ def _concretize_specs_together_new(*abstract_specs, **kwargs):
import spack.solver.asp
solver = spack.solver.asp.Solver()
solver.tests = kwargs.get("tests", False)
result = solver.solve(abstract_specs)
result = solver.solve(abstract_specs, tests=kwargs.get("tests", False))
result.raise_if_unsat()
return [s.copy() for s in result.specs]