You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on twister test on hardware using OpenOCD, I encounter the exception while twister logging the stderr from OpenOCD output with non-UTF8 encoding.
Would it be possible to change it to add parameter to ignore the error. That is: dlog_fp.write(stderr.decode(errors="ignore"))?
Error: Error: b'TARGET: riscv - Not halted\n\xefshutdown command invoked\n' ERROR - General exception: 'utf-8' codec can't decode byte 0xef in position 819: invalid continuation byte
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/zephyrproject-rtos/zephyr/blob/main/scripts/pylib/twister/twisterlib/handlers.py#L814
While working on twister test on hardware using OpenOCD, I encounter the exception while twister logging the stderr from OpenOCD output with non-UTF8 encoding.
Would it be possible to change it to add parameter to ignore the error. That is:
dlog_fp.write(stderr.decode(errors="ignore"))
?Error:
Error: b'TARGET: riscv - Not halted\n\xefshutdown command invoked\n'
ERROR - General exception: 'utf-8' codec can't decode byte 0xef in position 819: invalid continuation byte
Beta Was this translation helpful? Give feedback.
All reactions