nimble: fix bench_poly1305, improve reporting in pararun

This commit is contained in:
Mamy Ratsimbazafy 2022-09-19 00:41:37 +02:00
parent cc47c27cca
commit 7c7290115f
No known key found for this signature in database
GPG Key ID: 6227262F49BE273A
2 changed files with 5 additions and 2 deletions

View File

@ -237,7 +237,7 @@ const benchDesc = [
"bench_summary_bn254_nogami",
"bench_summary_bn254_snarks",
"bench_summary_pasta",
"bench_poly_1305",
"bench_poly1305",
"bench_sha256",
"bench_hash_to_curve",
"bench_blssig_on_bls12_381_g2"

View File

@ -84,6 +84,7 @@ proc enqueuePendingCommands(wq: WorkQueue) {.async.} =
wq.outputQueue.putNoWait((cmd, p))
proc flushCommandsOutput(wq: WorkQueue) {.async.} =
var id = 0
while true:
let (cmd, p) = await wq.outputQueue.get()
@ -100,7 +101,9 @@ proc flushCommandsOutput(wq: WorkQueue) {.async.} =
let exitCode = p.peekExitCode()
if exitCode != 0:
quit exitCode
quit "Command #" & $id & "exited with error " & $exitCode, exitCode
id += 1
if wq.cmdQueue.len == 0 and wq.outputQueue.len == 0:
return