mtest: remove superfluous '\r' from read_decode()

On Windows, the output read from the stream has '\r\n', which in .txt,
.json and console logger (when captured to a file) translates to '\n\n'.

This results in every log line being separated by an empty line.
pull/13323/head
Mateusz Patyk 7 months ago committed by Jussi Pakkanen
parent 6258f0dc86
commit 541fee0c3c
  1. 2
      mesonbuild/mtest.py

@ -1194,7 +1194,7 @@ async def read_decode(reader: asyncio.StreamReader,
except asyncio.LimitOverrunError as e:
line_bytes = await reader.readexactly(e.consumed)
if line_bytes:
line = decode(line_bytes)
line = decode(line_bytes).replace('\r\n', '\n')
stdo_lines.append(line)
if console_mode is ConsoleUser.STDOUT:
print(line, end='', flush=True)

Loading…
Cancel
Save