Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit d5a12e1

Browse files
t-perssonTobias Persson
andauthored
Fix a problem where test suite failed did not match started (#11)
Co-authored-by: Tobias Persson <tobias.persson@axis.com>
1 parent ef95026 commit d5a12e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/etos_client/lib/test_result_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ def spinner_text(self):
9090
def get_environment_events(self):
9191
"""Get the environment events set for this execution."""
9292
events = self.events.get("testSuiteStarted", [])
93-
events.append(self.events.get("mainSuiteStarted"))
94-
ids = [started["meta"]["id"] for started in events]
93+
ids = [
94+
started["meta"]["id"]
95+
for started in events + [self.events.get("mainSuiteStarted")]
96+
]
9597
ids.append(self.activity_id)
9698
self.events["environmentDefined"] = list(request_environment(self.etos, ids))
9799

0 commit comments

Comments
 (0)