zephyr/scripts/pylib/twister
Chen Peng1 ca08d2e4a6 twister: ignore serial device SerialException.
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 <peng1.chen@intel.com>
2022-05-16 16:55:42 +02:00
..
boards/unit/unit_testing sanitycheck: move sanity_chk -> pylib/twister 2020-12-11 14:13:02 -05:00
expr_parser.py twister: Add dt_nodelabel_enabled devicetree filter function 2021-07-28 18:41:26 -04:00
harness.py twister: status: fix status evaluation 2022-05-13 12:16:57 -04:00
scl.py everywhere: fix typos 2022-03-18 13:24:08 -04:00
twisterlib.py twister: ignore serial device SerialException. 2022-05-16 16:55:42 +02:00