mirror of
https://gitee.com/openharmony/testfwk_developer_test
synced 2024-12-02 21:07:29 +00:00
Signed-off-by caojiale1 caojiale1@huawei.com
Signed-off-by: caojiale1 <caojiale1@huawei.com>
This commit is contained in:
parent
ec4af7b3e6
commit
3c0c35fd9f
@ -56,7 +56,7 @@ def get_gcda_file(device_ip, device_sn, process_str, component_gcda_dict,
|
||||
home_path = '/'.join(roots_path.split("/")[:3])
|
||||
gcda_path = f"/data/gcov{roots_path}"
|
||||
|
||||
component_gcda_paths = component_gcda_dict[process_str] if component_gcda_dict[process_str] else []
|
||||
component_gcda_paths = component_gcda_dict.get(process_str) if component_gcda_dict.get(process_str) else []
|
||||
for component_gcda_path in component_gcda_paths:
|
||||
gcov_root = os.path.join(gcda_path, 'out', product_name, component_gcda_path)
|
||||
gcda_file_name = os.path.basename(gcov_root)
|
||||
|
Loading…
Reference in New Issue
Block a user