scripts: pylib: twister: fix missing newlines at handler.log
Keep new lines at handler.log. Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
This commit is contained in:
parent
fb7c2a79c5
commit
f0bfaa4c19
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ class DeviceHandler(Handler):
|
|||
# is available yet.
|
||||
if serial_line:
|
||||
# can be more lines in serial_line so split them before handling
|
||||
for sl in serial_line.decode('utf-8', 'ignore').splitlines():
|
||||
for sl in serial_line.decode('utf-8', 'ignore').splitlines(keepends=True):
|
||||
log_out_fp.write(strip_ansi_sequences(sl).encode('utf-8'))
|
||||
log_out_fp.flush()
|
||||
if sl := sl.strip():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue