forked from enlightenment/expedite
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:
parent
7c4bebe47e
commit
9db3724e47
|
@ -58,10 +58,16 @@ tests = []
|
||||||
for f in files:
|
for f in files:
|
||||||
d = data[f] = {}
|
d = data[f] = {}
|
||||||
for row in csv.reader(open(f)):
|
for row in csv.reader(open(f)):
|
||||||
|
if len(row) < 2:
|
||||||
|
continue
|
||||||
t = row[1].strip()
|
t = row[1].strip()
|
||||||
|
try:
|
||||||
|
val = float(row[0])
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
if f == ref_f:
|
if f == ref_f:
|
||||||
tests.append(t)
|
tests.append(t)
|
||||||
d[t] = float(row[0])
|
d[t] = val
|
||||||
max_test_name = max(len(t), max_test_name)
|
max_test_name = max(len(t), max_test_name)
|
||||||
|
|
||||||
def report_text():
|
def report_text():
|
||||||
|
|
Loading…
Reference in New Issue