mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-11 09:03:12 +00:00
debugging on ci
This commit is contained in:
parent
6b1e0b0f38
commit
4524a609a4
@ -45,6 +45,10 @@ proc start(node: NodeProcess) =
|
||||
proc waitUntilOutput*(node: NodeProcess, output: string) =
|
||||
if node.debug:
|
||||
raiseAssert "cannot read node output when in debug mode"
|
||||
when defined(windows):
|
||||
let lines = node.process.outputStream.lines.toSeq
|
||||
echo ">>> lines count: ", lines.len
|
||||
echo ">>> lines: ", lines
|
||||
for line in node.process.outputStream.lines:
|
||||
if line.contains(output):
|
||||
return
|
||||
@ -54,8 +58,6 @@ proc waitUntilStarted*(node: NodeProcess) =
|
||||
if node.debug:
|
||||
sleep(5_000)
|
||||
else:
|
||||
when defined(windows):
|
||||
sleep(5_000)
|
||||
node.waitUntilOutput("Started codex node")
|
||||
|
||||
proc startNode*(args: openArray[string], debug: string | bool = false): NodeProcess =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user