@@ -179,9 +179,10 @@ proc prepareNetwork() {.async.} =
179
179
" --insecure-netkey-password=true" ,
180
180
" --genesis-offset=0"
181
181
]
182
+ let binaryPath = absolutePath (" build/ncli_testnet" )
182
183
183
184
let process =
184
- await startProcess (" build/ncli_testnet " ,
185
+ await startProcess (binaryPath ,
185
186
arguments = arguments,
186
187
options = {AsyncProcessOption .StdErrToStdOut },
187
188
stdoutHandle = AsyncProcess .Pipe )
@@ -193,7 +194,9 @@ proc prepareNetwork() {.async.} =
193
194
else :
194
195
notice " Unable to create testnet" , rescode = rescode
195
196
let res = await process.stdoutStream.read ()
197
+ echo " ===== [" , binaryPath, " ] exited with [" , rescode, " ] ====="
196
198
echo bytesToString (res)
199
+ echo " ====="
197
200
finally :
198
201
await process.closeWait ()
199
202
@@ -354,8 +357,10 @@ proc startBeaconNode(basePort: int): Future[TestProcess] {.async.} =
354
357
" --doppelganger-detection=off"
355
358
]
356
359
360
+ let binaryPath = absolutePath (" build/nimbus_beacon_node" )
361
+
357
362
let res =
358
- await startProcess (" build/nimbus_beacon_node " ,
363
+ await startProcess (binaryPath ,
359
364
arguments = arguments,
360
365
options = {AsyncProcessOption .StdErrToStdOut },
361
366
stdoutHandle = AsyncProcess .Pipe )
@@ -364,7 +369,7 @@ proc startBeaconNode(basePort: int): Future[TestProcess] {.async.} =
364
369
)
365
370
366
371
notice " Beacon node process has been started" ,
367
- process_id = tp.process.pid ()
372
+ process_id = tp.process.pid (), binary_path = binaryPath
368
373
369
374
let
370
375
address = initTAddress (" 127.0.0.1:" &
@@ -373,12 +378,15 @@ proc startBeaconNode(basePort: int): Future[TestProcess] {.async.} =
373
378
374
379
if not (flag):
375
380
notice " Unable to establish connection with `nimbus_beacon_node` process" ,
376
- process_id = tp.process.pid ()
377
- let exitCode = await killAndWaitForExit (tp.process, 5 .seconds)
378
- echo " \n ===== `nimbus_beacon_node` [ " , exitCode, " ], logs ===== "
379
- let output = await tp.reader
380
- echo bytesToString (output)
381
+ process_id = tp.process.pid (), binary_path = binaryPath
382
+ let
383
+ exitCode = await killAndWaitForExit (tp.process, 5 .seconds)
384
+ output = await tp.reader
385
+
381
386
await tp.process.closeWait ()
387
+ echo " ===== [" , binaryPath, " ] exited with [" , exitCode, " ] ====="
388
+ echo bytesToString (output)
389
+ echo " ====="
382
390
raiseAssert " Unable to continue test"
383
391
384
392
return tp
@@ -399,8 +407,10 @@ proc startValidatorClient(basePort: int): Future[TestProcess] {.async.} =
399
407
" --keymanager-token-file=" & tokenFilePath
400
408
]
401
409
410
+ let binaryPath = absolutePath (" build/nimbus_validator_client" )
411
+
402
412
let res =
403
- await startProcess (" build/nimbus_validator_client " ,
413
+ await startProcess (binaryPath ,
404
414
arguments = arguments,
405
415
options = {AsyncProcessOption .StdErrToStdOut },
406
416
stdoutHandle = AsyncProcess .Pipe )
@@ -409,7 +419,7 @@ proc startValidatorClient(basePort: int): Future[TestProcess] {.async.} =
409
419
)
410
420
411
421
notice " Validator client process has been started" ,
412
- process_id = tp.process.pid ()
422
+ process_id = tp.process.pid (), binary_path = binaryPath
413
423
414
424
let
415
425
address = initTAddress (" 127.0.0.1:" &
@@ -418,12 +428,15 @@ proc startValidatorClient(basePort: int): Future[TestProcess] {.async.} =
418
428
419
429
if not (flag):
420
430
notice " Unable to establish connection with `nimbus_validator_client` " &
421
- " process" , process_id = tp.process.pid ()
422
- discard await killAndWaitForExit (tp.process, 5 .seconds)
423
- echo " \n ===== `nimbus_validator_client` logs ===== "
424
- let output = await tp.reader
425
- echo bytesToString (output)
431
+ " process" , process_id = tp.process.pid (), binary_path = binaryPath
432
+ let
433
+ exitCode = await killAndWaitForExit (tp.process, 5 .seconds)
434
+ output = await tp.reader
435
+
426
436
await tp.process.closeWait ()
437
+ echo " ===== [" , binaryPath, " ] exited with [" , exitCode, " ] ====="
438
+ echo bytesToString (output)
439
+ echo " ====="
427
440
raiseAssert " Unable to continue test"
428
441
429
442
return tp
0 commit comments