summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelenimath <49085878+elenimath@users.noreply.github.com>2023-02-20 11:21:24 +0200
committerGitHub <noreply@github.com>2023-02-20 10:21:24 +0100
commitc769582709ebcf845118ffe76b9f5b3aeb6eb5a5 (patch)
tree474b0dfe71ac766d7da9cd0856d1e46833d27a3d /lib
parent1958c2f9861b8d07ff85835b3cb2f3ad56ce9e7d (diff)
downloadspack-c769582709ebcf845118ffe76b9f5b3aeb6eb5a5.tar.gz
spack-c769582709ebcf845118ffe76b9f5b3aeb6eb5a5.tar.bz2
spack-c769582709ebcf845118ffe76b9f5b3aeb6eb5a5.tar.xz
spack-c769582709ebcf845118ffe76b9f5b3aeb6eb5a5.zip
Pass `tests` argument to solver method when concretizing together (#35290)
to make the workaround for #29447 work with `concretizer:unify:true` option
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/concretize.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py
index e0ff3c1d5d..fe876b0632 100644
--- a/lib/spack/spack/concretize.py
+++ b/lib/spack/spack/concretize.py
@@ -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]