From 1deec7f02168a149aafcf63f564abc879cb54e19 Mon Sep 17 00:00:00 2001 From: Chi Song Date: Mon, 24 Jan 2022 01:07:40 -0800 Subject: [PATCH] env_stats: simplify test result information. The env information is too big to result info. keep env name in test result. --- lisa/notifiers/env_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisa/notifiers/env_stats.py b/lisa/notifiers/env_stats.py index 45f2b34266..ab55df426d 100644 --- a/lisa/notifiers/env_stats.py +++ b/lisa/notifiers/env_stats.py @@ -17,7 +17,7 @@ class TestResultInformation: id: str name: str status: str = "" - environment: Optional["EnvironmentInformation"] = None + environment: str = "" started_time: Optional[datetime] = None @@ -92,7 +92,7 @@ def _process_test_result_message(self, test_result: TestResultMessage) -> None: assert ( environment_info ), f"cannot find environment for test result: {test_result}" - result_info.environment = environment_info + result_info.environment = env_name if result_info not in environment_info.results: environment_info.results.append(result_info)