tests/run-perfbench.py: Fix issues when -s/-m is used with failed tests.

The option '-s' (--diff-score) or '-m' (--diff-time) fails when the
specified result contains tests that was skipped or failed.

This patch ignores "skipped: " or "failed: " message.

Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
This commit is contained in:
Yuuki NAGAO
2025-09-14 19:22:06 +09:00
committed by Damien George
parent 2dc6873bbc
commit 29246ba817

View File

@@ -194,7 +194,13 @@ def parse_output(filename):
m = int(m.split("=")[1])
data = []
for l in f:
if ": " in l and ": SKIP" not in l and "CRASH: " not in l:
if (
": " in l
and ": SKIP" not in l
and "CRASH: " not in l
and "skipped: " not in l
and "failed: " not in l
):
name, values = l.strip().split(": ")
values = tuple(float(v) for v in values.split())
data.append((name,) + values)