diff --git a/scripts/pylib/twister/twisterlib/handlers.py b/scripts/pylib/twister/twisterlib/handlers.py index 780b51cb7d..e4a0d9f5a1 100755 --- a/scripts/pylib/twister/twisterlib/handlers.py +++ b/scripts/pylib/twister/twisterlib/handlers.py @@ -887,7 +887,7 @@ class QEMUHandler(Handler): # line contains a full line of data output from QEMU log_out_fp.write(line) log_out_fp.flush() - line = line.strip() + line = line.rstrip() logger.debug(f"QEMU ({pid}): {line}") harness.handle(line)