Merge "compare_cts_reports: do not show ignored ABI in the sheet" into main am: b9bd79b5e3
Original change: https://android-review.googlesource.com/c/platform/development/+/2867874 Change-Id: I8c9e7e24867ab6062f56529b9ca25e40a522fe46 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -22,3 +22,5 @@ VERSION = '1.0'
|
|||||||
NO_DATA = 'null'
|
NO_DATA = 'null'
|
||||||
TESTED_ITEMS = 'tested_items'
|
TESTED_ITEMS = 'tested_items'
|
||||||
PASS_RATE = 'pass_rate'
|
PASS_RATE = 'pass_rate'
|
||||||
|
|
||||||
|
ABI_IGNORED = 'abi-ignored'
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ python3 generate_spread_sheet.py \
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import constant
|
||||||
import csv
|
import csv
|
||||||
import gspread
|
import gspread
|
||||||
import os
|
import os
|
||||||
@@ -183,7 +184,9 @@ def _write_compare_details(
|
|||||||
|
|
||||||
# Module changes, need a new header row.
|
# Module changes, need a new header row.
|
||||||
if module_name != curr_module:
|
if module_name != curr_module:
|
||||||
rows_content.append([f'{module_name} [{abi}]', ''] + [''] * num_reports)
|
module_with_abi = (module_name if abi == constant.ABI_IGNORED
|
||||||
|
else f'{module_name} [{abi}]')
|
||||||
|
rows_content.append([module_with_abi, ''] + [''] * num_reports)
|
||||||
module_header_row = len(rows_content)
|
module_header_row = len(rows_content)
|
||||||
header_cell = _get_range_cell(
|
header_cell = _get_range_cell(
|
||||||
begin_row=curr_row, begin_column='A',
|
begin_row=curr_row, begin_column='A',
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ class CtsReport:
|
|||||||
|
|
||||||
for module in root.iter('Module'):
|
for module in root.iter('Module'):
|
||||||
module_name = module.attrib['name']
|
module_name = module.attrib['name']
|
||||||
abi = 'ignored' if ignore_abi else module.attrib['abi']
|
abi = constant.ABI_IGNORED if ignore_abi else module.attrib['abi']
|
||||||
|
|
||||||
for testcase in module.iter('TestCase'):
|
for testcase in module.iter('TestCase'):
|
||||||
class_name = testcase.attrib['name']
|
class_name = testcase.attrib['name']
|
||||||
|
|||||||
Reference in New Issue
Block a user