/test/testfwk/developer_test/src/core/config/ |
H A D | config_manager.py | 36 def __init__(self, filepath=""):
37 if filepath == "":
39 # 变量注释 filepath = OpenHarmony/test/developer_test/config/framework_config.xml
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) [all...] |
H A D | resource_manager.py | 85 def _get_file_name_extension(cls, filepath): 86 _, fullname = os.path.split(filepath) 88 LOG.debug("file path:{}".format(filepath)) 249 def _parse_resource_test_xml_file(self, filepath, targetname): 252 node = self.find_node_by_target(filepath, targetname)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | constants.py | 79 def create_empty_result_file(filepath, filename, error_message): 87 if not os.path.exists(filepath): 88 file_open = os.open(filepath, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 145 filepath = self.obtain_test_result_file() 146 if not os.path.exists(filepath): 147 create_empty_result_file(filepath, self.testsuite_name, 154 return filepath 160 filepath = os.path.join(result_savepath, "%s.xml" % str( 174 filepath) 179 filepath [all...] |
H A D | cpp_driver_lite.py | 426 filepath = report_path + report_xml 428 sftp.get(remotepath=filepath, 438 filepath = report_path + report_xml 439 shutil.copy(filepath, os.path.join(os.path.split(self.result)[0], report_xml)) 538 filepath = "{}{}".format(report_path, report_xml) 540 sftp.remove(filepath)
|
/test/testfwk/developer_test/src/core/command/ |
H A D | gen.py | 59 filepath = os.path.join(sys.source_code_root_path, "test", 61 LOG.info("The fuzzer list file path: %s" % filepath) 62 if os.path.exists(filepath): 63 os.remove(filepath) 64 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as gn_file:
|
/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | resource_manager.py | 39 def _parse_test_xml_file(self, filepath, targetname): 42 node = self._find_node_by_target(filepath, targetname) 77 def _find_node_by_target(filepath, targetname): 80 if os.path.exists(filepath): 81 tree = ElementTree.parse(filepath) 94 def _get_filename_extension(filepath): 95 _, fullname = os.path.split(filepath)
|
/test/testfwk/developer_test/src/core/build/ |
H A D | select_targets.py | 37 def _get_mlf_data_from_file(cls, filepath): 39 if os.path.exists(filepath): 40 with open(filepath, 'r') as mlf_file: 43 LOG.warning("The %s file load error." % filepath) 140 for filepath in mlf_file_list: 142 mlf_info_list = self._get_mlf_data_from_file(filepath)
|
H A D | build_manager.py | 62 def _make_gn_file(cls, filepath, target_list): 63 LOG.info("The gn file path: %s" % filepath) 64 if os.path.exists(filepath): 65 os.remove(filepath) 66 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as gn_file:
|
/test/testfwk/developer_test/local_coverage/ |
H A D | utils.py | 168 def is_elffile(filepath: str) -> bool: 171 :param filepath: 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/local_coverage/resident_service/ |
H A D | public_method.py | 25 def get_config_ip(filepath): 31 if os.path.exists(filepath): 32 tree = ET.parse(filepath)
|
/test/testfwk/developer_test/local_coverage/interface_coverage/ |
H A D | interface_coverage_gcov_lcov.py | 45 def create_coverage_result_outpath(filepath): 46 if os.path.exists(filepath): 47 shutil.rmtree(filepath) 48 os.makedirs(filepath) 116 def is_need_to_be_parsed(filepath): 118 if -1 != filepath.find(item):
|
/test/testfwk/xdevice/plugins/devicetest/core/suite/ |
H A D | test_suite.py | 274 filepath = os.path.join(path, file) 276 if os.path.isdir(filepath): 277 result.extend(self._get_case_list(filepath)) 279 elif os.path.isfile(filepath) and \ 280 "__pycache__" not in filepath: 285 result.append(filepath)
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | spawnndk.cpp | 63 char filepath[] = "/data/storage/el2/base/files/fzl.txt";
in PosixSpawn() local 64 int fileDescribe = open(filepath, O_CREAT, PARAM_0777);
in PosixSpawn() 65 posix_spawn(&Pid, filepath, nullptr, &spawnAttributes, (char *const *)argv, Environ);
in PosixSpawn() 86 char filepath[] = "/data/storage/el2/base/files/fzl.txt";
in PosixSpawnP() local 87 int fileDescribe = open(filepath, O_CREAT, PARAM_0777);
in PosixSpawnP() 88 posix_spawnp(&Pid, filepath, nullptr, &spawnAttributes, (char *const *)argv, Environ);
in PosixSpawnP()
|
/test/testfwk/developer_test/src/core/driver/ |
H A D | drivers.py | 203 def _create_empty_result_file(filepath, filename, error_message): 211 if not os.path.exists(filepath): 212 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc: 257 def _create_fuzz_crash_file(filepath, filename): 258 if not os.path.exists(filepath): 259 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc: 283 def _create_fuzz_pass_file(filepath, filename): 284 if not os.path.exists(filepath): 285 with os.fdopen(os.open(filepath, FLAGS, MODES), 'w') as file_desc: 304 def _create_fuzz_result_file(filepath, filenam [all...] |
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/include/ |
H A D | VDecEncNdkSample.h | 95 void SetReadPath(std::string filepath); 96 void SetSavePath(std::string filepath);
|
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/src/ |
H A D | VDecEncNdkSample.cpp | 130 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()
|