Skip to content

Add uart communication layer#333

Open
EstAK wants to merge 4 commits intoopen-s4c:mainfrom
EstAK:uart_clean
Open

Add uart communication layer#333
EstAK wants to merge 4 commits intoopen-s4c:mainfrom
EstAK:uart_clean

Conversation

@EstAK
Copy link
Collaborator

@EstAK EstAK commented Mar 9, 2026

No description provided.

Copy link
Collaborator

@apaolillo apaolillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice start, thanks for the meaningful addition! I left comments. I also think that adding a simple example to show how the uart works in benchkit would be helpful indeed.

raise RuntimeError("Communication layer is not open.")
self._unchecked_close_comm()

def _unchecked_close_comm(self) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why "unchecked"?

ignore_ret_codes: Iterable[int] = (),
ignore_any_error_code: bool = False,
) -> str:
"""Run a shell command on the target host.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that only works when use_shell=True?

Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>

def close_comm(self) -> None:
"""
Performs checks then, closes the communication layer.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when checks are you performing?

EstAK added 3 commits March 9, 2026 18:21
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
Signed-off-by: estak <esteban.aguililla.klein.pro@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants