From 1df6a3196a46f9ca89df6de2ccec379e5490cd5b Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Thu, 23 Feb 2023 15:47:11 -0800 Subject: [PATCH] matrix broadcast: more robust test --- lib/spack/spack/test/spec_list.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/test/spec_list.py b/lib/spack/spack/test/spec_list.py index ff62f6bd6de..4665cbe3870 100644 --- a/lib/spack/spack/test/spec_list.py +++ b/lib/spack/spack/test/spec_list.py @@ -216,10 +216,13 @@ def test_spec_list_constraints_with_structure( assert libdwarf_spec in speclist.specs[0] def test_spec_list_broadcast(self, mock_packages): - matrix = {"matrix": [["mpileaks"], ["^callpath"]], "broadcast": [["%gcc", "%clang"]]} + matrix = { + "matrix": [["mpileaks"], ["^callpath"]], + "broadcast": [["%gcc", "%clang"], ["+debug", "~debug"]]} speclist = SpecList("specs", [matrix]) - assert len(speclist) == 2 + assert len(speclist) == 4 for spec in speclist: for node in spec.traverse(): assert node.compiler.name == spec.compiler.name + assert node.variants["debug"].value == spec.variants["debug"].value