mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01: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('-----')
|
print('-----')
|
||||||
return placeholder
|
return placeholder
|
||||||
|
|
||||||
if key == "testcase":
|
if key == "testcase" or key == "title":
|
||||||
timing[key] = value
|
timing[key] = value
|
||||||
else:
|
else:
|
||||||
timing[key] = None if (value == "undefined") else int(value)
|
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
|
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("Didn't find any perf data in the log, test timeout?")
|
||||||
print("Fillng in a dummy perf data")
|
print("Fillng in a dummy perf data")
|
||||||
print('[DEBUG] log:')
|
print('[DEBUG] log:')
|
||||||
|
@ -136,7 +134,7 @@ def parse_log(log, testcase=None):
|
||||||
|
|
||||||
return [placeholder]
|
return [placeholder]
|
||||||
else:
|
else:
|
||||||
return map(parse_block, blocks)
|
return timings
|
||||||
|
|
||||||
|
|
||||||
def filter_result_by_manifest(result_json, manifest):
|
def filter_result_by_manifest(result_json, manifest):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue