Skip ill formed lines

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:
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:
t = row[1].strip()
val = float(row[0])
except ValueError:
if f == ref_f:
d[t] = float(row[0])
d[t] = val
max_test_name = max(len(t), max_test_name)
def report_text():