From 29246ba81784e9e1b31a070082b2729f1b4b1d72 Mon Sep 17 00:00:00 2001 From: Yuuki NAGAO Date: Sun, 14 Sep 2025 19:22:06 +0900 Subject: [PATCH] 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 --- tests/run-perfbench.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/run-perfbench.py b/tests/run-perfbench.py index 2a2b7b6c9d..039d11a361 100755 --- a/tests/run-perfbench.py +++ b/tests/run-perfbench.py @@ -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)