/build/test/example/ |
H A D | test_gn_template.py | 247 result = exec_command_out_put(cmd_path, res_def_name, error_log) 248 assert result, "build test_ohos_shared_library_output_dir failed" 257 result = exec_command_out_put(cmd_path, res_def_name, error_log) 258 assert result, "build test_ohos_shared_library_testonly failed" 267 result = exec_command_communicate(cmd_path, res_path, res_def_name) 268 assert result, "build test_ohos_shared_library failed" 277 result = exec_command_communicate(cmd_path, res_path, res_def_name) 278 assert result, " ohos_shared_library template output_name and output_extension invalid" 287 result = exec_command_communicate(cmd_path, res_path, res_def_name) 288 assert result, " ohos_shared_librar [all...] |
H A D | test_build_option.py | 571 result = self.get_match_result(cmd, "target_cpu", cpu_para) 573 assert result == 0, "target cpu para {} failed".format(cpu_para) 582 result = self.get_match_result(cmd, "ccache", ccache_para) 584 assert result == 0, "ccache para {} failed".format(ccache_para) 599 result = self.get_match_result(cmd, "rename_last_log", rename_last_log_para) 604 assert self.is_exist(new_path) and result == 0, "rename_last_log para {} failed".format( 607 assert not self.is_exist(new_path) and result == 0, "rename_last_log para {} failed".format( 617 result = self.get_match_result(cmd, "build_target", build_target) 619 assert result == 0, "build target para {} failed".format(build_target) 628 result [all...] |
/build/config/posix/ |
H A D | sysroot_ld_path.py | 17 result = subprocess.check_output([sys.argv[1], sys.argv[2]]).strip() variable 18 result = result.decode().replace(" ", "\n") variable 19 if result != "": 20 print(result)
|
/build/ohos/ |
H A D | file_exists.py | 22 result = False 24 result = os.path.exists(filename) and os.path.isfile(filename) 26 result = os.path.exists(filename) and os.path.isdir(filename) 27 return result 35 result = is_exists(args.filename, args.type) 36 sys.stdout.write(str(result))
|
/build/toolchain/ |
H A D | gcc_solink_wrapper.py | 54 result, toc = collect_soname(args) 55 if result == 0: 56 result, dynsym = collect_dyn_sym(args) 58 return result, toc 76 result = [] 83 result.append(arg) 89 result.extend(implibs) 92 fo.write(" ".join(result)) 168 result = wrapper_utils.run_link_with_optional_map_file( 171 if result ! [all...] |
H A D | gcc_link_wrapper.py | 94 result = wrapper_utils.run_link_with_optional_map_file( 96 if result != 0: 97 return result 101 result = subprocess.call( 110 result = subprocess.call( 115 return result
|
H A D | wrapper_utils.py | 76 result = subprocess.call(command, env=env) 78 if tmp_map_path and result == 0: 84 return result
|
H A D | rust_strip.py | 25 result = subprocess.call( 33 result = subprocess.call( 37 return result
|
H A D | rustc_wrapper.py | 118 result = exec_formatted_command(args) 119 if result != 0: 120 return result 122 result = rust_strip.do_strip(args.strip, args.output, args.unstripped_file, args.mini_debug, 124 return result
|
/build/tools/component_tools/static_check/ |
H A D | csct_online_entry.py | 26 resutl: check result 33 result = " " 50 result, errcode = ret.communicate(timeout=30) 55 status = False if len(result) != 0 else True 60 return status, result 69 status, result = csct_online(prs) 70 return status, result
|
/build/tools/component_tools/ |
H A D | generate_kconfig.py | 63 def write_kconfig(result: str, outdir: str): 66 f.writelines(result) 73 result = 'mainmenu "Subsystem Component Kconfig Configuration"\n' 77 result += create_property("property$${}".format(prop), prop) 81 result += create_menu(subsys_name) 84 result += create_config("{}$${}".format(subsys_name, component_name), component_name) 85 result += create_feature("{}$${}".format(subsys_name, component_name)) 86 result += end_menu() 87 write_kconfig(result, outdir)
|
H A D | parse_kconf.py | 127 result, subsys_conf = {}, {} 139 result[items.get(PROPERTY)] = items.get(VALUE) 145 result[SUBSYS_LIST] = subsys_conf 146 return result 162 result = kconf 163 result[SUBSYS_LIST] = subsystems_list 165 f.write(json.dumps(result, indent=2))
|
/build/hb/util/ |
H A D | type_check_util.py | 50 result = [] 53 result += TypeCheckUtil.tile_list(entity) 55 result.append(entity) 58 return result
|
H A D | monitor.py | 60 result = subprocess.check_output(grep_command, input=top_output, universal_newlines=True).strip()
61 if result:
62 parts = result.split()
147 result = subprocess.run(['df', '-h'], stdout=subprocess.PIPE, text=True)
148 if result.returncode == 0:
149 lines = result.stdout.strip().split('\n')[1:]
163 LogUtil.write_log(self.log_path, f"Error running df command:{result.stderr}", "info")
|
/build/tools/component_tools/static_check/gn_check/ |
H A D | gn_common_tools.py | 84 result = None 88 result = output 89 return result 103 result = re.finditer(ptrn, content) 104 return result
|
/build/scripts/ |
H A D | kernel_permission_handler.py | 68 result = subprocess.run(command, capture_output=True, text=True) variable 70 if result.returncode == 0: 74 print("Error:", result.stderr)
|
H A D | get_warnings.py | 37 result = False 43 result = True 45 return result 100 result = _parse(log_file, temp_out_file, prj_dir) 101 if result: 113 help='result file',
|
H A D | code_release.py | 63 result = False 68 result = True 71 return result 109 result = -1 114 result = 0 117 return result
|
/build/templates/common/ |
H A D | external_deps_handler.py | 150 result = {} 151 write_json_file(args.external_deps_temp_file, result) 271 result = {} 272 result['deps'] = deps 274 result['libs'] = libs 276 result['include_dirs'] = include_dirs 278 write_json_file(args.external_deps_temp_file, result)
|
H A D | include_relative_path_check.py | 68 result = {'line_num': line_num, 'file_path': file.replace(project_path, "/"), 71 results.append(result) 88 result = cls.scan_files(components, project_path) 92 for ele in result:
|
/build/ |
H A D | gn_helpers.py | 58 result = "" 62 result += "%s = %s\n" % (key, to_gn_string(value[key], False)) 63 return result 106 re-parsed to get the same result. 148 result = [] 156 result.append(unescape_gn_special_char(next_char)) 159 result.append(value[i]) 162 return ''.join(result) 207 result = self._parse_allow_trailing() 212 return result [all...] |
/build/ohos/packages/ |
H A D | gen_required_modules_list.py | 65 result = [] 67 result.append(info.get(get_arrt_name)) 68 return result
|
/build/ohos/ndk/ |
H A D | check_ndk_header.py | 47 result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 48 if result.returncode != 0: 50 fs.write(f'Error: {result.stderr.decode()}')
|
/build/hb/util/loader/ |
H A D | platforms_loader.py | 210 result = {} 211 result['all_parts'] = all_parts 212 result['all_stubs'] = platform_loader.get_all_stubs() 213 result['variant_toolchain_info'] = toolchain_to_variant_dict 214 return result
|
/build/ohos/kits/ |
H A D | kits_check_remove.py | 81 result = check_remove(args.sign_file_root_dir, args.subsystem_name, 83 if not result:
|