mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Filter reports for ones with title Error report.
This commit is contained in:
parent
8e7837159e
commit
900518ae55
1 changed files with 8 additions and 10 deletions
|
@ -112,21 +112,19 @@ def parse_log(log, testcase=None):
|
|||
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:')
|
||||
|
@ -136,7 +134,7 @@ def parse_log(log, testcase=None):
|
|||
|
||||
return [placeholder]
|
||||
else:
|
||||
return map(parse_block, blocks)
|
||||
return timings
|
||||
|
||||
|
||||
def filter_result_by_manifest(result_json, manifest):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue