Skip to content

Commit

Permalink
[uss_qualifier] Make execution error critical (#285)
Browse files Browse the repository at this point in the history
Make execution error critical
  • Loading branch information
BenjaminPelletier authored Oct 23, 2023
1 parent efd11c1 commit 778d8af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions monitoring/uss_qualifier/reports/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,13 @@ class TestScenarioReport(ImplicitDict):
"""If there was an error while executing this test scenario, this field describes the error"""

def has_critical_problem(self) -> bool:
return any(c.has_critical_problem() for c in self.cases) or (
"cleanup" in self and self.cleanup and self.cleanup.has_critical_problem()
)
if any(c.has_critical_problem() for c in self.cases):
return True
if "cleanup" in self and self.cleanup and self.cleanup.has_critical_problem():
return True
if "execution_error" in self and self.execution_error:
return True
return False

def all_participants(self) -> Set[ParticipantID]:
participants = set()
Expand Down

0 comments on commit 778d8af

Please sign in to comment.