Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.0-branch] twister: ignore serial device SerialException. #50682

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Sep 27, 2022

Backport ca08d2e from #44976

Fixes #45009

For some boards, like up_squared and ehl_crb, they need do a
power off/on operation and use bios to load and execute zephyr
test binary, during the power off, it may meet this SerialException,
but the serial object still works well after power on, we can continue
to get all results from serial, so we don't need to close it,
it's ok to ignore this exception.
BTW, even if we ignore this exception here, it doesn't influence twister
function, because if it was really caused by disconnection, the test would
still be judged as failed due to timeout and serial would be closed later
in main thread, it doesn't impact results.
On the contrary, close serial directly in the monitor serial thread, it
will cause later tests failed due to mismatch errors.

Signed-off-by: Chen Peng1 <[email protected]>
(cherry picked from commit ca08d2e)
@zephyrbot zephyrbot requested a review from nashif as a code owner September 27, 2022 05:58
@github-actions github-actions bot added the area: Twister Twister label Sep 27, 2022
@chen-png chen-png requested a review from smrtos September 27, 2022 07:29
@dkalowsk dkalowsk merged commit 9a119f9 into v3.0-branch Nov 3, 2022
@nashif nashif deleted the backport-44976-to-v3.0-branch branch April 6, 2023 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants