Skip ill formed lines

Summary:
Some lines reported by expedite are just informative, like the window
size. We skip lines that don't have the formatting we expect.

Fixes T8852

Reviewers: vtorri, raster

Reviewed By: raster

Maniphest Tasks: T8852

Differential Revision: https://phab.enlightenment.org/D12186
This commit is contained in:
Wander Lairson Costa 2020-11-10 08:31:13 +00:00 committed by Carsten Haitzler (Rasterman)
parent 7c4bebe47e
commit 9db3724e47
1 changed files with 7 additions and 1 deletions

View File

@ -58,10 +58,16 @@ tests = []
for f in files:
d = data[f] = {}
for row in csv.reader(open(f)):
if len(row) < 2:
continue
t = row[1].strip()
try:
val = float(row[0])
except ValueError:
continue
if f == ref_f:
tests.append(t)
d[t] = float(row[0])
d[t] = val
max_test_name = max(len(t), max_test_name)
def report_text():