Skip to content

Commit

Permalink
Filter reports for ones with title Error report.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Aug 19, 2016
1 parent 8e78371 commit 900518a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions etc/ci/performance/runner.py
Expand Up @@ -112,21 +112,19 @@ def parse_block(block):
print('-----')
return placeholder

if key == "testcase":
if key == "testcase" or key == "title":
timing[key] = value
else:
timing[key] = None if (value == "undefined") else int(value)

if testcase is not None and timing['testcase'] != testcase:
print('[DEBUG] log:')
print('-----')
print(log)
print('-----')
return placeholder

return timing

if len(blocks) == 0:
def valid_timing(timing):
return (timing.get('title') != 'Error response') and (testcase is None or timing.get('testcase') == testcase)

timings = list(filter(valid_timing, map(parse_block, blocks)))

if len(timings) == 0:
print("Didn't find any perf data in the log, test timeout?")
print("Fillng in a dummy perf data")
print('[DEBUG] log:')
Expand All @@ -136,7 +134,7 @@ def parse_block(block):

return [placeholder]
else:
return map(parse_block, blocks)
return timings


def filter_result_by_manifest(result_json, manifest):
Expand Down

0 comments on commit 900518a

Please sign in to comment.