add new line to stdout/stderr logs when logging lines

This commit is contained in:
Eric 2025-03-21 12:18:26 +11:00
parent 05fae04db6
commit 98f3ff76e0
No known key found for this signature in database

View File

@ -469,7 +469,7 @@ proc captureOutput(
while (let line = await stream.readLine(0, "\n"); line != ""):
try:
output.add line
filePath.appendFile(line.stripAnsi)
filePath.appendFile(line & "\n".stripAnsi)
await sleepAsync(1.nanos)
except IOError as e:
warn "Failed to write test stdout and/or stderr to file", error = e.msg