summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWander Lairson Costa <wander.lairson@gmail.com>2020-11-10 08:31:13 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-11-10 08:31:13 +0000
commit9db3724e47e95d5d9a6196014c73bdc58ebe85a9 (patch)
treeb7fc6f9e79de76baa032e067c85f317e93777ad2
parent7c4bebe47e1f6a7dfee8d370e53bbc61e47025e0 (diff)
Skip ill formed linesHEADmaster
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
-rwxr-xr-xsrc/bin/expedite-cmp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/expedite-cmp b/src/bin/expedite-cmp
index ea6d5ec..7745ba5 100755
--- a/src/bin/expedite-cmp
+++ b/src/bin/expedite-cmp
@@ -58,10 +58,16 @@ tests = []
58for f in files: 58for f in files:
59 d = data[f] = {} 59 d = data[f] = {}
60 for row in csv.reader(open(f)): 60 for row in csv.reader(open(f)):
61 if len(row) < 2:
62 continue
61 t = row[1].strip() 63 t = row[1].strip()
64 try:
65 val = float(row[0])
66 except ValueError:
67 continue
62 if f == ref_f: 68 if f == ref_f:
63 tests.append(t) 69 tests.append(t)
64 d[t] = float(row[0]) 70 d[t] = val
65 max_test_name = max(len(t), max_test_name) 71 max_test_name = max(len(t), max_test_name)
66 72
67def report_text(): 73def report_text():