update broadcast test to test excludes as well

This commit is contained in:
Gregory Becker 2023-03-23 10:36:03 -07:00
parent 788ad561bd
commit 9df3b57f1f

View File

@ -219,10 +219,10 @@ def test_spec_list_broadcast(self, mock_packages):
matrix = { matrix = {
"matrix": [["mpileaks"], ["^callpath"]], "matrix": [["mpileaks"], ["^callpath"]],
"broadcast": [["%gcc", "%clang"], ["+debug", "~debug"]], "broadcast": [["%gcc", "%clang"], ["+debug", "~debug"]],
} "exclude": ["+debug%clang"]}
speclist = SpecList("specs", [matrix]) speclist = SpecList("specs", [matrix])
assert len(speclist) == 4 assert len(speclist) == 3
for spec in speclist: for spec in speclist:
for node in spec.traverse(): for node in spec.traverse():
assert node.compiler.name == spec.compiler.name assert node.compiler.name == spec.compiler.name