Skip to content

Commit

Permalink
env_stats: simplify test result information.
Browse files Browse the repository at this point in the history
The env information is too big to result info. keep env name in test
result.
  • Loading branch information
Chi Song authored and squirrelsc committed Jan 24, 2022
1 parent 8178dc0 commit 1deec7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisa/notifiers/env_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestResultInformation:
id: str
name: str
status: str = ""
environment: Optional["EnvironmentInformation"] = None
environment: str = ""
started_time: Optional[datetime] = None


Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 1deec7f

Please sign in to comment.