Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 17 of 17) sorted by relevance

/test/testfwk/developer_test/src/core/config/
Dconfig_manager.py36 def __init__(self, filepath=""): argument
37 if filepath == "":
40 self.filepath = os.path.abspath(os.path.join(
43 self.filepath = filepath
49 if os.path.exists(self.filepath):
52 tree = ET.parse(self.filepath)
66 LOG.error(("Parse %s fail!" % self.filepath) + xml_exception.args)
73 if os.path.exists(self.filepath):
74 tree = ET.parse(self.filepath)
84 LOG.error("The %s file does not exist." % self.filepath)
[all …]
Dresource_manager.py56 def _parse_resource_test_xml_file(self, filepath, targetname): argument
59 node = self.find_node_by_target(filepath, targetname)
116 def _get_file_name_extension(cls, filepath): argument
117 _, fullname = os.path.split(filepath)
119 LOG.debug("file path:{}".format(filepath))
/test/testfwk/developer_test/src/core/command/
Dgen.py44 filepath = os.path.join(sys.source_code_root_path, "test",
46 LOG.info("The fuzzer list file path: %s" % filepath)
47 if os.path.exists(filepath):
48 os.remove(filepath)
49 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as gn_file:
/test/testfwk/xdevice/src/xdevice/_core/config/
Dresource_manager.py39 def _parse_test_xml_file(self, filepath, targetname): argument
42 node = self._find_node_by_target(filepath, targetname)
77 def _find_node_by_target(filepath, targetname): argument
80 if os.path.exists(filepath):
81 tree = ElementTree.parse(filepath)
94 def _get_filename_extension(filepath): argument
95 _, fullname = os.path.split(filepath)
/test/testfwk/developer_test/localCoverage/
Dutils.py168 def is_elffile(filepath: str) -> bool:
174 if not os.path.exists(filepath):
175 logger("{} not exists.".format(filepath), "ERROR")
179 file_states = os.stat(filepath)
183 with open(filepath, "rb") as f:
/test/testfwk/developer_test/src/core/build/
Dselect_targets.py37 def _get_mlf_data_from_file(cls, filepath): argument
39 if os.path.exists(filepath):
40 with open(filepath, 'r') as mlf_file:
43 LOG.warning("The %s file load error." % filepath)
92 for filepath in mlf_file_list:
94 mlf_info_list = self._get_mlf_data_from_file(filepath)
Dbuild_manager.py43 def _make_gn_file(cls, filepath, target_list): argument
44 LOG.info("The gn file path: %s" % filepath)
45 if os.path.exists(filepath):
46 os.remove(filepath)
47 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as gn_file:
/test/testfwk/developer_test/localCoverage/resident_service/
Dpublic_method.py25 def get_config_ip(filepath): argument
31 if os.path.exists(filepath):
32 tree = ET.parse(filepath)
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dspawnndk.cpp62 char filepath[] = "/data/storage/el2/base/files/fzl.txt"; in PosixSpawn() local
63 int fileDescribe = open(filepath, O_CREAT); in PosixSpawn()
64 posix_spawn(&Pid, filepath, nullptr, &spawnAttributes, (char *const *)argv, Environ); in PosixSpawn()
85 char filepath[] = "/data/storage/el2/base/files/fzl.txt"; in PosixSpawnP() local
86 int fileDescribe = open(filepath, O_CREAT); in PosixSpawnP()
87 posix_spawnp(&Pid, filepath, nullptr, &spawnAttributes, (char *const *)argv, Environ); in PosixSpawnP()
/test/testfwk/developer_test/src/core/driver/
Ddrivers.py193 def _create_empty_result_file(filepath, filename, error_message): argument
201 if not os.path.exists(filepath):
202 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc:
247 def _create_fuzz_crash_file(filepath, filename): argument
248 if not os.path.exists(filepath):
249 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc:
273 def _create_fuzz_pass_file(filepath, filename): argument
274 if not os.path.exists(filepath):
275 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc:
294 def _create_fuzz_result_file(filepath, filename, error_message): argument
[all …]
/test/testfwk/developer_test/localCoverage/interfaceCoverage/
DinterfaceCoverage_gcov_lcov.py45 def create_coverage_result_outpath(filepath): argument
46 if os.path.exists(filepath):
47 shutil.rmtree(filepath)
48 os.makedirs(filepath)
114 def is_need_to_be_parsed(filepath): argument
116 if -1 != filepath.find(item):
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/include/
DVDecEncNdkSample.h95 void SetReadPath(std::string filepath);
96 void SetSavePath(std::string filepath);
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
Ddrivers.py117 def _create_empty_result_file(filepath, filename, error_message): argument
125 if not os.path.exists(filepath):
126 file_open = os.open(filepath, os.O_WRONLY | os.O_CREAT | os.O_APPEND,
161 filepath = self.obtain_test_result_file()
162 if not os.path.exists(filepath):
163 _create_empty_result_file(filepath, self.testsuite_name,
170 return filepath
176 filepath = os.path.join(result_savepath, "%s.xml" % str(
190 filepath)
195 filepath = os.path.join(result_savepath, "%s.xml" %
[all …]
Ddrivers_lite.py477 filepath = report_path + report_xml
479 sftp.get(remotepath=filepath,
489 filepath = report_path + report_xml
490 shutil.copy(filepath,
593 filepath = "{}{}".format(report_path, report_xml)
595 sftp.remove(filepath)
/test/testfwk/developer_test/third_party/lib/cpp/
DBUILD.gn49 "//third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h",
61 "//third_party/googletest/googletest/src/gtest-filepath.cc",
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/src/
DVDecEncNdkSample.cpp130 void VDecEncNdkSample::SetReadPath(std::string filepath) in SetReadPath() argument
132 inFile_ = filepath; in SetReadPath()
139 void VDecEncNdkSample::SetSavePath(std::string filepath) in SetSavePath() argument
141 outFile_ = filepath; in SetSavePath()
/test/xts/tools/lite/hcpptest/
DBUILD.gn55 "//third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h",
67 "//third_party/googletest/googletest/src/gtest-filepath.cc",