line endings in windows are normalized for chronos output
This commit is contained in:
parent
075e89de2b
commit
47e4783b14
|
@ -46,10 +46,7 @@ proc waitUntilOutput*(node: NodeProcess, output: string, started: Future[void])
|
|||
let stream = node.process.stdOutStream
|
||||
|
||||
try:
|
||||
let lineEnding = when defined(windows): "\r\n"
|
||||
else: "\n"
|
||||
|
||||
while(let line = await stream.readLine(0, lineEnding); line != ""):
|
||||
while(let line = await stream.readLine(0, "\n"); line != ""):
|
||||
if node.debug:
|
||||
echo line
|
||||
|
||||
|
|
Loading…
Reference in New Issue