mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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:
committed by
Damien George
parent
2dc6873bbc
commit
29246ba817
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user