Skip to content

Commit a1077d2

Browse files
committed
Only include family snap or deb
1 parent 2e5da98 commit a1077d2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

backend/scripts/test_failure_reason.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ def artifact_filter(x: dict) -> bool:
6464
and x["TestResult.status"] == "FAILED"
6565
)
6666

67-
return {"id": id_filter, "artifact_name": artifact_filter}[filter_name]
67+
def both(f):
68+
def _f(x: dict) -> bool:
69+
return x["Artefact.family"] in ["snap", "deb"] and f(x)
70+
71+
return _f
72+
73+
return {"id": both(id_filter), "artifact_name": both(artifact_filter)}[
74+
filter_name
75+
]
6876

6977

7078
def main():

0 commit comments

Comments
 (0)