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
|
let stream = node.process.stdOutStream
|
||||||
|
|
||||||
try:
|
try:
|
||||||
let lineEnding = when defined(windows): "\r\n"
|
while(let line = await stream.readLine(0, "\n"); line != ""):
|
||||||
else: "\n"
|
|
||||||
|
|
||||||
while(let line = await stream.readLine(0, lineEnding); line != ""):
|
|
||||||
if node.debug:
|
if node.debug:
|
||||||
echo line
|
echo line
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue