Skip to content
Commit 1f51a0e0 authored by Ederson de Souza's avatar Ederson de Souza Committed by Carles Cufí
Browse files

scripts/pylib/pytest-twister-harness: Do not fail on Unicode garbage



If pylib twister harness reads bytes that can't be decoded to Unicode,
it would raise an exception at a separate "serial reader" process, that
would fail without any warning.

This patch uses "errors='replace'" parameter for Python str.decode()
method, so that this doesn't happen.

Signed-off-by: default avatarEderson de Souza <ederson.desouza@intel.com>
parent 80e1b37f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment