/test/testfwk/developer_test/libs/fuzzlib/ |
D | fuzzer_helper.py | 135 file_path = os.path.join(project_dir_path, 'project.xml') 136 if os.path.exists(file_path): 137 os.remove(file_path) 138 with os.fdopen(os.open(file_path, FLAGS, MODES), 'w') as filehandle: 141 file_path = os.path.join(project_dir_path, "%s.cpp" % args.project_name) 142 if os.path.exists(file_path): 143 os.remove(file_path) 144 with os.fdopen(os.open(file_path, FLAGS, MODES), 'w') as filehandle: 147 file_path = os.path.join(project_dir_path, "%s.h" % args.project_name) 148 if os.path.exists(file_path): [all …]
|
/test/testfwk/developer_test/localCoverage/restore_comment/ |
D | restore_source_code.py | 37 file_path = os.path.join(root_path, path_str) variable 38 if os.path.exists(file_path): 40 subprocess.Popen("rm -rf %s" % file_path, shell=True).communicate() 42 f"{file_path}_primal", file_path), shell=True).communicate() 44 print("The directory does not exist.", file_path)
|
D | build_before_generate.py | 36 file_path = os.path.join(root, file_name) 39 file_path_list_append(file_path) 91 file_path = os.path.join(root_path, path_str) 93 if os.path.exists(file_path): 96 file_path, primal_path), shell=True).communicate() 97 source_file_path = get_source_file_list(file_path) 100 print("The directory does not exist.", file_path)
|
/test/testfwk/developer_test/localCoverage/keyword_registration/ |
D | keyword_filter.py | 49 file_path = os.path.join(root_path, file) 50 yield file_path 111 def get_coverage_content(file_path): argument 115 if not os.path.exists(file_path): 118 with open(file_path, "r", encoding="utf-8") as file: 157 def get_coverage_lines_by_branch(self, file_path, content=None): argument 162 content = self.get_coverage_content(file_path) 165 _, file_name = os.path.split(file_path) 435 def update_coverage_ratio_tag(self, file_path): argument 439 with open(file_path, "r", encoding="utf-8") as coverage_file: [all …]
|
/test/testfwk/developer_test/localCoverage/interfaceCoverage/ |
D | interfaceCoverage_gcov_lcov.py | 102 for file_path in files: 103 if "" != file_path and -1 == file_path.find(__file__): 104 pos = file_path.rfind(os.sep) 105 file_name = file_path[pos + 1:] 106 file_path = os.path.join(dirs[0], file_path) 108 print("Skipped %s" % file_path) 110 file_list.append(file_path) 222 file_path = os.path.join(SUB_SYSTEM_INFO_PATH, file_name) 223 if os.path.exists(file_path): 224 with open(file_path, "r") as fd:
|
/test/xts/tools/lite/repackage/ |
D | auto_jffs2.sh | 118 file_path=$input_dir"/"$file_name 119 if [ -f "$file_path" ] 121 \cp $file_path $mount_dir/bin
|
/test/testfwk/developer_test/aw/python/distributed/common/ |
D | drivers.py | 53 file_path = os.path.join(longcommand_path, sh_file_name) 55 with os.fdopen(os.open(file_path, FLAGS, MODES), 'a') as file_desc: 59 return sh_file_name, file_path 146 sh_file_name, file_path = make_long_command_file(command, 149 self.device.push_file(file_path, DEVICE_TEST_PATH)
|
/test/testfwk/xdevice/src/xdevice/_core/config/ |
D | config_manager.py | 45 self.file_path = config_file 55 self.file_path = os.path.abspath(os.path.join( 59 LOG.debug("User config path: %s" % self.file_path) 60 if os.path.exists(self.file_path): 61 tree = ElementTree.parse(self.file_path) 64 raise ParamError("%s not found" % self.file_path, 74 "Parse %s fail! Error: %s" % (self.file_path, error.args),
|
/test/testfwk/developer_test/libs/benchmark/report/ |
D | generate_report.py | 60 for file_path in files: 61 if "" != file_path and -1 == file_path.find(__file__): 62 pos = file_path.rfind(os.sep) 63 file_name = file_path[pos + 1:] 64 file_path = os.path.join(dirs[0], file_path) 66 print(SETTING_RED_STYLE % ("Skipped %s" % file_path)) 68 file_list.append(file_path)
|
/test/testfwk/developer_test/aw/python/distributed/distribute/ |
D | distribute.py | 309 def _write_device_config(device_info, file_path): argument 310 file_dir, file_name = os.path.split(file_path) 314 if os.path.exists(file_path): 315 os.remove(file_path) 316 with os.fdopen(os.open(file_path, FLAGS, MODES), 'w') as file_desc: 318 os.rename(file_path, final_file)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/ |
D | kit.py | 283 def __download_web_resource(self, device, file_path): argument 298 file_path = file_path.replace("\\", "/") 301 if re.match(pattern, file_path) is None: 303 file_path = re.sub(pattern, "", file_path) 305 request_config.get(ConfigConst.resource_path), file_path) 308 url = self.__query_resource_url(device, web_resource_url, "resource/" + file_path) 331 def __query_resource_url(self, device, query_url, file_path): argument 347 "filePath": file_path, 379 for file_path in files: 381 os.path.join(root, file_path).replace(src, dst)) [all …]
|
D | kit_lite.py | 297 file_path = get_file_absolute_path(source, self.paths) 298 if os.path.isdir(file_path): 299 for root, _, files in os.walk(file_path): 305 file_local_paths.append(file_path)
|
/test/testfwk/xdevice/src/xdevice/_core/ |
D | utils.py | 52 def get_filename_extension(file_path): argument 53 _, fullname = os.path.split(file_path) 292 file_path = os.path.join(path, alt_dir, _input) 293 if os.path.exists(file_path): 294 return os.path.abspath(file_path) 296 file_path = os.path.join(path, _input) 297 if os.path.exists(file_path): 298 return os.path.abspath(file_path)
|
/test/testfwk/developer_test/src/core/config/ |
D | resource_manager.py | 94 def find_node_by_target(file_path, targe_tname): argument 97 if os.path.exists(file_path): 98 tree = ElementTree.parse(file_path)
|
/test/xts/tools/build/ |
D | suite.py | 150 for file_path in copyfiles: 151 subprocess.call(["cp", "-rf", file_path, suite_path]) 374 def _check_file_exist(self, file_path): argument 375 if not os.path.exists(file_path): 376 raise Exception("File [%s] does not exist!" % file_path)
|
/test/xts/tools/lite/build/ |
D | suite.py | 159 def _check_file_exist(file_path): argument 160 if not os.path.exists(file_path): 161 raise Exception("File [%s] does not exist!" % file_path)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
D | device_lite.py | 59 file_path = "" 63 file_path = os.path.abspath(os.path.join( 67 if os.path.exists(file_path): 68 return file_path
|
D | dmlib.py | 535 file_path = os.path.join(local, child) 536 if os.path.isdir(file_path): 538 file_path, "%s/%s" % (remote, child), 541 self.do_push_file(file_path, "%s/%s" % (remote, child))
|
D | device.py | 430 def is_file_exist(self, file_path): argument 431 file_path = check_path_legal(file_path) 432 output = self.execute_shell_command("ls {}".format(file_path))
|
/test/testfwk/xdevice/src/xdevice/_core/executor/ |
D | source.py | 297 def _make_test_descriptor(file_path, test_type_key): argument 303 filename, _ = get_filename_extension(file_path) 307 os.path.join(os.path.dirname(file_path), filename)) 312 source=TestSource(file_path, "", config_file, filename,
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
D | drivers_lite.py | 521 file_path = os.path.join(report_path, execute_bin_xml) 536 remote_file = sftp_client.open(file_path) 554 with os.fdopen(os.open(file_path, flags, modes), 1040 file_path = self._get_log_file() 1041 result_list = self._get_result_list(file_path) 1068 def _get_result_list(cls, file_path): argument 1070 for root_path, dirs_path, file_names in os.walk(file_path): 1083 file_path = get_file_absolute_path(log_path, 1085 LOG.debug("The file path is:%s" % file_path) 1086 return file_path
|
D | openharmony.py | 1193 def _do_parse_json(file_path): argument 1195 if not os.path.exists(file_path): 1197 file_path), error_no="00110") 1200 with os.fdopen(os.open(file_path, flags, modes), 1205 file_path), error_no="00110")
|
/test/xts/tools/reftest/ |
D | Tool.py | 152 def send_path(self, file_path): argument 154 input_path.send_keys(file_path) # 发送路径
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
D | result_reporter.py | 393 file_path = os.path.join(log_path, filename) 395 if os.path.isdir(file_path):
|