handle a matrix not having 'os' defined

This commit is contained in:
sommersoft 2022-03-28 16:49:29 -05:00
parent 8314dc6fb1
commit f8a47b3054
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class DownstreamRunner:
for item in parsed_matrix: for item in parsed_matrix:
if (not item[tox_base].startswith(tox_prefix) or if (not item[tox_base].startswith(tox_prefix) or
item[tox_base] in self.matrix_exclude or item[tox_base] in self.matrix_exclude or
not item.get("os", "").startswith("ubuntu") not item.get("os", "ubuntu").startswith("ubuntu")
): ):
skip_matrices.append(item) skip_matrices.append(item)
continue continue