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 1b47e16405
commit 91b5084047
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 != ""): while (let line = await stream.readLine(0, "\n"); line != ""):
try: try:
output.add line output.add line
filePath.appendFile(line.stripAnsi) filePath.appendFile(line & "\n".stripAnsi)
await sleepAsync(1.nanos) await sleepAsync(1.nanos)
except IOError as e: except IOError as e:
warn "Failed to write test stdout and/or stderr to file", error = e.msg warn "Failed to write test stdout and/or stderr to file", error = e.msg