From 7c7290115f0370de29dc09e9d957e8311ff7f23a Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Mon, 19 Sep 2022 00:41:37 +0200 Subject: [PATCH] nimble: fix bench_poly1305, improve reporting in pararun --- constantine.nimble | 2 +- helpers/pararun.nim | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/constantine.nimble b/constantine.nimble index 941c631..10ef373 100644 --- a/constantine.nimble +++ b/constantine.nimble @@ -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" diff --git a/helpers/pararun.nim b/helpers/pararun.nim index 788d7b9..a06116b 100644 --- a/helpers/pararun.nim +++ b/helpers/pararun.nim @@ -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