Home
last modified time | relevance | path

Searched refs:os (Results 1 - 25 of 125) sorted by relevance

12345

/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dfile_util.py19 import os namespace
42 if os.path.isabs(template_file_path) \
43 and (not isdir and os.path.isfile(template_file_path)):
44 return os.path.abspath(template_file_path)
47 if not os.path.isfile(template_file_path) and template_file_path.startswith("/"):
55 folder = os.path.abspath(EnvPool.resource_path)
64 folder = os.path.abspath(ecotest_resource_path)
83 if os.path.isabs(resource_file_path) \
84 and ((isdir is None and os.path.exists(resource_file_path))
85 or (not isdir and os
[all...]
/test/testfwk/developer_test/libs/fuzzlib/
H A Dfuzzer_helper.py20 import os namespace
42 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
45 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
46 SOURCE_ROOT_DIR = os.path.dirname(
47 os.path.dirname(
48 os.path.dirname(os
[all...]
/test/testfwk/developer_test/local_coverage/
H A Dcoverage_tools.py20 import os namespace
30 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
35 all_system_info_path = os.path.join(
38 system_info_path = os.path.join(
41 if os.path.exists(all_system_info_path):
52 if os.path.exists(system_info_path):
53 os.remove(system_info_path)
54 with os
[all...]
/test/testfwk/developer_test/src/core/build/
H A Dpretreat_targets.py19 import os namespace
28 FLAGS_WRITE = os.O_WRONLY | os.O_CREAT | os.O_EXCL
29 FLAGS_ADD = os.O_WRONLY | os.O_APPEND | os.O_CREAT
72 template_path = os.path.join(sys.framework_root_dir, "libs",
74 target_path = os.path.join(sys.source_code_root_path, path)
75 config_path = os
[all...]
H A Dbuild_testcases.py19 import os namespace
50 self.part_deps_path = os.path.join(sys.source_code_root_path,
62 if not os.path.exists(target_dir):
63 os.makedirs(target_dir)
82 toolchain_filepath = os.path.join(
87 if os.path.exists(toolchain_filepath):
103 xts_testcase_out_dir = os.path.join(
110 if os.path.exists(xts_testcase_out_dir):
115 helper_path = os.path.join("..", "libs", "fuzzlib", "fuzzer_helper.py")
218 package_out_dir = os
[all...]
/test/testfwk/developer_test/local_coverage/code_coverage/
H A Dmultiprocess_code_coverage.py19 import os namespace
30 FLAGS = os.O_WRONLY | os.O_APPEND | os.O_CREAT
46 sys.localcoverage_path = os.path.join(current_path, "..")
67 coverage_log_path = os.path.join(
69 with os.fdopen(os.open(coverage_log_path, FLAGS, MODES), 'a') as fd:
80 subsystem_config_filepath = os.path.join(CODEPATH, SYSTEM_JSON)
81 if os
[all...]
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dinit_gcov.py19 import os namespace
29 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
34 sys.localcoverage_path = os.path.join(current_path, "..")
42 recv_path = os.path.join(developer_path, "local_coverage/resident_service/resources")
45 recv_restores_path = os.path.join(recv_path, "restores_environment")
46 if not os.path.exists(recv_restores_path):
47 os.mkdir(recv_restores_path)
48 recv_restores_name = os
[all...]
/test/testfwk/developer_test/src/core/
H A Dutils.py20 import os namespace
28 _, fullname = os.path.split(file)
29 filename, ext = os.path.splitext(fullname)
34 full_path = os.path.abspath(os.path.expanduser(path))
35 if not os.path.exists(full_path):
36 os.makedirs(full_path, exist_ok=True)
40 file_names = os.listdir(find_path)
56 for dirs in os.walk(path):
60 file_name = os
[all...]
/test/testfwk/developer_test/libs/benchmark/report/
H A Dgenerate_report.py20 import os namespace
25 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
33 if os.path.isfile(json_file_path):
48 file_names = os.listdir(find_path)
59 for dirs in os.walk(path):
63 pos = file_path.rfind(os.sep)
65 file_path = os.path.join(dirs[0], file_path)
101 dest_path = os
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Dconstants.py19 import os namespace
87 if not os.path.exists(filepath):
88 file_open = os.open(filepath, os.O_WRONLY | os.O_CREAT | os.O_APPEND,
90 with os.fdopen(file_open, "w") as file_desc:
109 findkey = "%stests%s" % (os.sep, os.sep)
110 filedir, _ = os
[all...]
/test/testfwk/xdevice/src/xdevice/_core/executor/
H A Dsource.py19 import os namespace
104 inner_testcases_dir = os.path.abspath(os.path.join(
106 if getattr(config, ConfigConst.testcases_path, "") and os.path.normcase(
107 config.testcases_path) != os.path.normcase(inner_testcases_dir):
113 if os.path.normcase(Variables.exec_dir) != os.path.normcase(
123 for root, dirs, _ in os.walk(testcases_path):
126 testcases_dirs.append(os.path.abspath(os
[all...]
/test/testfwk/developer_test/aw/python/distributed/common/
H A Dcommon.py19 import os namespace
23 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
32 result_rootpath = os.environ.get('PYTEST_RESULTPATH')
33 findkey = os.sep + "tests" + os.sep
34 filedir, _ = os.path.split(testsuit_path)
38 pos1 = subpath.find(os.sep)
40 subpath = subpath[pos1 + len(os
[all...]
H A Ddrivers.py19 import os namespace
33 FLAGS = os.O_WRONLY | os.O_APPEND | os.O_CREAT
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:
72 file_dir = suite_file.split("distributedtest")[1].strip(os.sep).split(os.sep)[0]
74 cxx_cov_path = os
[all...]
/test/xts/tools/lite/build/
H A Dutils.py18 import os namespace
104 if not os.path.exists(input_file):
113 file_dir = os.path.dirname(os.path.abspath(output_file))
114 if not os.path.exists(file_dir):
115 os.makedirs(file_dir)
139 _parent_output = os.path.dirname(_output)
141 if to_dir and not os.path.exists(_output):
142 os.makedirs(_output)
143 if not to_dir and not os
[all...]
H A Dsuite.py19 import os namespace
79 _out_file = os.path.join(_suite_out_file,
103 _config_file = os.path.join(_suite_out_file,
106 _config_file = os.path.join(_out_file,
113 if _test_xml and os.path.exists(_test_xml):
128 module_info_dir = os.path.dirname(suite_out_dir)
129 module_info_list_file = os.path.join(module_info_dir,
132 if os.path.exists(module_info_list_file):
148 if not os.path.exists(tmpl_file):
151 "path %s " % os
[all...]
/test/testfwk/xdevice/src/xdevice/_core/
H A Dvariables.py19 import os namespace
27 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
28 MODULES_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
29 TOP_DIR = os.path.abspath(
30 os
[all...]
/test/xts/tools/build/
H A Dutils.py18 import os namespace
74 if not os.path.exists(input_file):
83 file_dir = os.path.dirname(os.path.abspath(output_file))
84 if not os.path.exists(file_dir):
85 os.makedirs(file_dir)
109 _parent_output = os.path.dirname(_output)
111 if to_dir and not os.path.exists(_output):
112 os.makedirs(_output)
113 if not to_dir and not os
[all...]
H A Dsuite.py19 import os namespace
57 return os.path.join(xts_root, resource_reldir)
79 ohos_dir = os.path.join(self.args.source_dir, 'plugins', 'ohos')
80 devicetest_dir = os.path.join(self.args.source_dir, 'plugins', 'devicetest')
81 gen_dir0 = os.path.join(self.args.source_dir, 'dist')
82 gen_dir1 = os.path.join(ohos_dir, 'dist')
83 gen_dir2 = os.path.join(devicetest_dir, 'dist')
98 [os.path.join(self.args.source_dir, "run.bat"),
99 os.path.join(self.args.source_dir, "run.sh")])
101 dist_tools_dir = os
[all...]
/test/testfwk/developer_test/local_coverage/restore_comment/
H A Dbuild_before_generate.py19 import os namespace
25 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
35 for root, dirs, files in os.walk(path):
37 file_path = os.path.join(root, file_name)
38 _, suffix = os.path.splitext(file_name)
55 if not os.path.exists(path) or "test" in path:
59 source_dir, suffix_name = os.path.splitext(path)
60 if os
[all...]
H A Dafter_lcov_branch.py19 import os namespace
23 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
33 for root, dirs, files in os.walk(path):
35 file_path = os.path.join(root, file_name)
36 _, suffix = os.path.splitext(file_name)
48 source_dir, suffix_name = os.path.splitext(path)
49 if not os.path.exists(path):
55 if os
[all...]
/test/testfwk/developer_test/src/core/driver/
H A Ddrivers.py20 import os namespace
65 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
125 log_path = os.path.join(report_path, Variables.report_vars.log_dir)
126 os.makedirs(log_path, exist_ok=True)
130 device_log_file = os.path.join(log_path, device_file_name)
147 findkey = os.sep + "tests" + os.sep
148 filedir, _ = os
[all...]
H A Dlite_driver.py19 import os namespace
200 case_name = os.path.basename(test_case)
201 if os.path.exists(os.path.join(self.nfs_dir, case_name)):
202 os.remove(os.path.join(self.nfs_dir, case_name))
204 result_file = os.path.join(self.nfs_dir, result_name)
205 if os.path.exists(result_file):
206 os.remove(result_file)
207 shutil.copyfile(test_case, os
[all...]
/test/xts/acts/
H A Dget_dependency.py19 import os namespace
25 home = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
26 manifest_home = os.path.join(home, ".repo")
27 preloader_path = os.path.join(home, "out", "preloader")
42 for root, dirs, files in os.walk(path):
47 file_path = os
[all...]
/test/testfwk/developer_test/aw/python/distributed/distribute/
H A Ddistribute.py19 import os namespace
26 FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL
31 sys.framework_src_dir = os.path.abspath(os.path.dirname(
32 os.path.dirname(__file__)))
34 sys.framework_root_dir = os.path.abspath(os.path.dirname(
35 os
[all...]
/test/testfwk/developer_test/libs/fuzzlib/tools/
H A Dcolored.py18 import os namespace
22 FLAGS = os.O_WRONLY | os.O_APPEND | os.O_CREAT
69 if not os.path.exists(Colored.LOG_DIR):
70 os.mkdir(Colored.LOG_DIR)
73 if not os.path.exists(project_log_dir):
74 os.mkdir(project_log_dir)
77 if not os.path.exists(current_project_log_dir):
78 os
[all...]

Completed in 8 milliseconds

12345