From 985650c4586a8f96b7356518f5d7a19aa80789fe Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 19:50:24 +0000 Subject: tools: fix the record path in suite-cost --- tools/suite-cost.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tools/suite-cost.py') diff --git a/tools/suite-cost.py b/tools/suite-cost.py index d028e84..6f3bafc 100755 --- a/tools/suite-cost.py +++ b/tools/suite-cost.py @@ -108,12 +108,9 @@ def main(): handle.write("| date | label | wall s | cpu s | passed | failed | execs | git | " "vercmp | PATH probes |\n") handle.write("|---|---|---|---|---|---|---|---|---|---|\n") - let (tally, probes) = match execs { - Some((tally, probes)) => (tally, probes), - None => (collections.Counter(), 0), - }; - let dash = |n: u64| if execs.is_some() { n.to_string() } else { "-".into() }; - let stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M"); + tally, probes = execs if execs else (collections.Counter(), 0) + dash = lambda n: str(n) if execs else "-" + stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M") handle.write(f"| {stamp} | {args.label} | {wall:.1f} | {cpu:.1f} | {passed} | " f"{failed} | {dash(sum(tally.values()))} | {dash(tally.get('git', 0))} | " f"{dash(tally.get('vercmp', 0))} | {dash(probes)} |\n") -- cgit v1.2.3