Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 30) sorted by relevance

12

/test/testfwk/developer_test/localCoverage/restore_comment/
Dafter_lcov_branch.py44 for file_name in files:
45 if "" != file_name and -1 == file_name.find(__file__):
46 file_name = os.path.join(dirs[0], file_name)
47 if os.path.isfile(file_name):
48 file_list.append(file_name)
Dbuild_before_generate.py35 for file_name in files:
36 file_path = os.path.join(root, file_name)
37 _, suffix = os.path.splitext(file_name)
/test/testfwk/developer_test/src/core/
Dutils.py43 for file_name in file_names:
45 if file_name.find(postfix) != -1 \
46 and file_name[-len(postfix):] == postfix:
47 file_list.append(file_name)
49 file_list.append(file_name)
58 for file_name in files:
59 if "" != file_name and -1 == file_name.find(__file__):
60 file_name = os.path.join(dirs[0], file_name)
61 if os.path.isfile(file_name):
62 file_list.append(file_name)
/test/testfwk/developer_test/aw/python/distributed/common/
Ddrivers.py71 def receive_coverage_data(device, result_path, suite_file, file_name): argument
80 file_name + '_' + file_dir + '_' + device.device_sn))
122 case_dir, file_name = os.path.split(suite_file)
132 file_name,
133 file_name)
140 file_name,
142 file_name,
148 file_name)
167 receive_coverage_data(self.device, result_path, suite_file, file_name)
/test/xts/tools/reftest/
DTool.py176 def test_screenshot(self, ele_path, file_name): argument
182 self.driver.get_screenshot_as_file("D:\\share\\" + file_name + ".png") # 截图
184 def test_implicit_expression_screenshot(self, ele_path, file_name): argument
191 self.driver.get_screenshot_as_file("D:\\share\\" + file_name + ".png") # 截图
193 def test_file_screenshot(self,file_name): argument
198 self.driver.get_screenshot_as_file("D:\\share\\" + file_name + ".png") # 截图
200 def implicit_waiting(self, file_name): argument
203 self.driver.get_screenshot_as_file("D:\\share\\" + file_name + ".png") # 截图
213 def ref_screenshot(self, ele_path, file_name): argument
218 self.driver.get_screenshot_as_file("D:\\share\\" + file_name + ".png") # 截图
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
Ddrivers_lite.py109 def sort_by_length(file_name): argument
110 return len(file_name)
124 self.file_name = ""
185 with os.fdopen(device_log_file_open, "a") as file_name:
186 file_name.write(self.config.command_result)
187 file_name.flush()
353 self.file_name = command.split(" ")[0].split("/")[-1].split(".")[0]
355 "result", self.file_name)
365 parser_instance.suite_name = self.file_name
626 self.file_name = ""
[all …]
/test/testfwk/developer_test/src/core/driver/
Dlite_driver.py255 file_name = os.path.basename(result_file)
256 final_result = os.path.join(test_result, file_name)
319 self.file_name = ""
346 self.file_name = os.path.basename(config_file).split(".")[0]
379 parser_instance.suites_name = self.file_name
387 "result", self.file_name)
406 with os.fdopen(device_log_file_open, "a") as file_name:
407 file_name.write("{}{}".format(
409 file_name.flush()
425 if not self.file_name:
[all …]
/test/xts/tools/lite/repackage/
Dauto_jffs2.sh116 for file_name in $(ls $input_dir)
118 file_path=$input_dir"/"$file_name
122 echo "文件$file_name 拷贝成功"
/test/testfwk/developer_test/src/core/command/
Ddistribute_utils.py150 case_dir, file_name = os.path.split(test)
153 if file_name.endswith("Test"):
154 result[case_dir]["major_target_name"] = file_name
156 result[case_dir]["agent_target_name"] = file_name
/test/testfwk/developer_test/src/core/testcase/
Dtestcase_manager.py114 file_name = os.path.basename(suite_file)
116 if file_name in filter_list_test_file:
119 prefix_name, suffix_name = os.path.splitext(file_name)
156 if file_name.startswith("rust_"):
207 file_name = os.path.basename(xts_suite_file)
208 prefix_name, suffix_name = os.path.splitext(file_name)
212 if file_name == "HatsOpenPosixTest":
/test/testfwk/xdevice/src/xdevice/_core/executor/
Dsource.py127 for file_name in files:
128 if not os.path.isabs(file_name):
129 file_name = os.path.join(Variables.exec_dir, file_name)
130 if os.path.isfile(file_name) and test_type_key in \
132 desc = _make_test_descriptor(os.path.abspath(file_name),
468 def _parse_module_name(config_file, file_name): argument
472 if "{" in file_name:
474 return file_name
Drequest.py134 def _load_task(self, task_dir, file_name): argument
135 task_file = os.path.join(task_dir, file_name)
/test/testfwk/developer_test/aw/python/distributed/distribute/
Ddistribute.py124 _, file_name = os.path.split(source_path)
126 if not os.path.exists(os.path.join(result_save_path, file_name)):
127 create_empty_result_file(result_save_path, file_name)
310 file_dir, file_name = os.path.split(file_path)
311 final_file = os.path.join(file_dir, file_name.split('.')[0] + ".desc")
/test/testfwk/xdevice/src/xdevice/_core/testkit/
Dkit.py112 for file_name in junit_paras[para_name]:
113 device.push_file(file_name, include_file)
118 for file_name in junit_paras[para_name]:
119 device.push_file(file_name, exclude_file)
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/
Dkit.py389 for file_name in self.pushed_file:
390 LOG.debug("Trying to remove file {}".format(file_name))
391 file_name = file_name.replace("\\", "/")
396 file_name = check_path_legal(file_name)
398 file_name), receiver=collect_receiver,
402 "Removed file {} successfully".format(file_name))
408 LOG.error("Failed to remove file {}".format(file_name))
739 file_name, key, value = prop_infos
740 if file_name not in cust_files:
743 file_name))
[all …]
/test/testfwk/xdevice/src/xdevice/_core/report/
Drepeater_helper.py53 file_name = r"{}\repeated.xml".format(self.report_path)
54 self.data_helper.generate_report(root_tree, file_name)
Dreporter_helper.py199 def get_summary_result(cls, report_path, file_name, key=None, **kwargs): argument
242 cls.generate_report(summary_result, file_name)
251 for file_name in files:
252 if not file_name.endswith(cls.DATA_REPORT_SUFFIX):
254 if file_prefix and not file_name.startswith(file_prefix):
256 data_reports.append(os.path.join(root, file_name))
273 def generate_report(element, file_name): argument
285 file_name_open = os.open(file_name, flags, FilePermission.mode_755)
291 tree.write(file_name, encoding="UTF-8", xml_declaration=True,
293 LOG.info("Generate data report: %s", file_name)
[all …]
Dresult_reporter.py235 file_name = os.path.basename(xml_file)
242 module_name = file_name[:-4] if module.name == "" else module.name
673 for file_name in files:
674 if not file_name.endswith(self.data_helper.DATA_REPORT_SUFFIX):
677 data_reports.append((os.path.join(root, file_name),
/test/testfwk/developer_test/localCoverage/interfaceCoverage/
DinterfaceCoverage_gcov_lcov.py105 file_name = file_path[pos + 1:]
107 if filter_jar != "" and file_name == filter_jar:
221 file_name = f"{part_name}_strip.info"
222 file_path = os.path.join(SUB_SYSTEM_INFO_PATH, file_name)
/test/testfwk/developer_test/src/core/build/
Dpretreat_targets.py103 file_name = os.listdir(target_path)
104 for file in file_name:
/test/testfwk/developer_test/localCoverage/keyword_registration/
Dkeyword_filter.py80 os.path.normcase(os.path.join(os.path.dirname(gcov_file_path), file_name))
81 for file_name in file_name_list
84 os.path.normcase(os.path.join(self.report_path, file_name))
85 for file_name in file_name_list
165 _, file_name = os.path.split(file_path)
505 file_dir, file_name = os.path.split(file_path)
514 judge_item = ">" + file_name.replace(".gcov.html", "")
/test/testfwk/developer_test/libs/benchmark/report/
Dgenerate_report.py63 file_name = file_path[pos + 1:]
65 if filter_jar != "" and file_name == filter_jar:
/test/testfwk/developer_test/localCoverage/codeCoverage/
DmutilProcess_CodeCoverage.py164 for file_name in gcda_list:
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dstdiondk.cpp474 int vfprintftest(char *file_name, char *format, char *funcName, char *want_reuslt, ...) in vfprintftest() argument
476 FILE *file = fopen(file_name, "w"); in vfprintftest()
Dstdiondk1.cpp1487 extern "C" int Vfprintf_Test(const char *file_name, const char *format, const char *want_reuslt, ..…
1488 int Vfprintf_Test(const char *file_name, const char *format, const char *want_reuslt, ...) in Vfprintf_Test() argument
1490 FILE *fp = fopen(file_name, "w+"); in Vfprintf_Test()
1499 remove(file_name); in Vfprintf_Test()

12