Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 166) sorted by relevance

1234567

/developtools/integration_verification/tools/fotff/utils/
Dlog.go27 var LogFile *os.File
28 var StdoutFile *os.File
29 var osStdout, osStderr = os.Stdout, os.Stderr
32 if err := os.MkdirAll("logs", 0750); err != nil {
36 logrus.SetOutput(os.Stdout)
60 LogFile, StdoutFile, os.Stdout, os.Stderr = nil, nil, osStdout, osStderr
65 var f *os.File
67 if _, err = os.Stat(file); err == nil {
68 f, err = os.OpenFile(file, os.O_RDWR|os.O_APPEND, 0666)
70 f, err = os.Create(file)
[all …]
/developtools/ace_js2bundle/
Dbuild_ace_loader_library.py16 import os
21 standard_system_build_dir = os.path.join(os.path.dirname(__file__), os.pardir,
22 os.pardir, 'build', 'scripts', 'util')
23 build_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir,
24 os.pardir, os.pardir, os.pardir, 'build', 'maple', 'java', 'util')
25 if os.path.exists(standard_system_build_dir):
27 os.path.join(standard_system_build_dir, os.pardir, os.pardir))
29 if os.path.exists(build_dir):
30 sys.path.append(os.path.join(build_dir, os.pardir, os.pardir, os.pardir))
/developtools/integration_verification/DeployDevice/src/aw/Download/
DDownload.py14 import os
33 current_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
34 BitCometjar = os.path.join(current_path, "Resource", "thirdtools", "TTorrentFull.jar")
62 version_path, destdir = os.path.split(download_dir)
64 exist_log = os.path.join(version_path, destdir + "_exist.log")
68 if os.path.isfile(exist_log):
85 download_torrent = os.path.join(version_path, destdir + ".torrent")
88 if os.path.isfile(download_torrent):
99 if os.path.isfile(Aria2cbin):
105 result = os.system(BT_Command)
[all …]
DDownloadold.py14 import os
33 current_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
34 BitCometjar = os.path.join(current_path, "Resource", "thirdtools", "TTorrentFull.jar")
62 version_path, destdir = os.path.split(download_dir)
64 exist_log = os.path.join(version_path, destdir + "_exist.log")
68 if os.path.isfile(exist_log):
85 download_torrent = os.path.join(version_path, destdir + ".torrent")
88 if os.path.isfile(download_torrent):
99 if os.path.isfile(Aria2cbin):
105 result = os.system(BT_Command)
[all …]
/developtools/hiperf/script/
Drecv_binary_cache.py17 import os
27 ABS_PATH = os.path.split(os.path.realpath(__file__))[0]
34 self.local_cache_dir = os.path.join(ABS_PATH, 'binary_cache')
35 if not os.path.isdir(self.local_cache_dir):
36 os.makedirs(self.local_cache_dir)
79 for root, _, files in os.walk(lib_dir):
97 build_id = get_build_id(os.path.join(root, filename))
105 os.path.join(root, filename), bin_file)
112 target_file = target_file.replace('/', os.sep)
113 target_file = os.path.join(self.local_cache_dir, target_file)
[all …]
/developtools/smartperf_host/trace_streamer/build/
Dprotoc_w.py16 import os
21 THIS_DIR = os.path.dirname(os.path.abspath(__file__))
22 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, ".."))
27 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, ".."))
29 OHOS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2])
30 LIBCXX_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[1], "ndk/libcxx/linux_x86_64")
31 SUBSYS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR)
38 PROTOC = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOC_NAME)
39 OPT_PLUGIN_PROTOREADER_PATH = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOCREADER_PLUGIN)
40 OPT_PLUGIN_PROTOREADER = "--plugin=protoc-gen-plugin=" + os.path.join(PROJECT_TOP, sys.argv[2], TAI…
[all …]
/developtools/ace_ets2bundle/
Dbuild_ets_loader_library.py16 import os
21 standard_system_build_dir = os.path.join(os.path.dirname(__file__), os.pardir,
22 os.pardir, 'build', 'scripts', 'util')
23 build_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir,
24 os.pardir, os.pardir, os.pardir, 'build', 'maple', 'java', 'util')
25 if os.path.exists(standard_system_build_dir):
27 os.path.join(standard_system_build_dir, os.pardir, os.pardir))
29 if os.path.exists(build_dir):
30 sys.path.append(os.path.join(build_dir, os.pardir, os.pardir, os.pardir))
Dinstall_arkguard_tsc.py17 import os
25 dest_package_path = os.path.join(dest_path, package_name)
26 temp_package_path = os.path.join(dest_path, current_os + package_name)
27 if (os.path.exists(dest_package_path) or os.path.exists(temp_package_path)):
29 os.makedirs(temp_package_path, exist_ok=True)
35 package_path = os.path.join(temp_package_path, 'package')
36 if not (os.path.exists(dest_package_path)):
57 node_modules_path = os.path.join(source_path, "node_modules")
/developtools/integration_verification/DeployDevice/src/aw/ExtractFile/
DExtractFile.py13 import os
33 if not os.path.isfile(zip_file):
37 if not os.path.isdir(extract_dir):
38 os.mkdir(extract_dir)
49 if not os.path.isfile(os.path.join(extract_dir, os.path.basename(file_name))):
83 img_path = os.path.join(dest_dir, "resource.img")
84 if not os.path.exists(img_path):
105 if not os.path.isfile(file):
110 if os.path.exists(backup_file):
111 os.remove(backup_file)
[all …]
/developtools/integration_verification/DeployDevice/src/aw/Common/
DCommon.py3 import os
25 if not os.path.isfile(source_path):
27 if os.path.isdir(copy_path):
28 copy_path = os.path.join(copy_path, os.path.basename(source_path))
42 if not os.path.isdir(src_dir):
45 if not os.path.isdir(dst_dir):
47 os.makedirs(dst_dir)
52 if not os.path.isdir(dst_dir):
56 for item in os.listdir(src_dir):
57 file_path = os.path.join(src_dir, item)
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/
Dbasic_tool.py3 import os
44 for root, _, file_names in os.walk(folder):
46 [os.path.abspath(os.path.realpath(
47os.path.join(root, f) if real_path else os.path.join(root, f))) if apply_abs else os.path.relpath(
48os.path.realpath(os.path.join(root, f) if real_path else os.path.join(root, f))) for f in file_nam…
49 if p_filter(os.path.join(root, f))])
57 return os.path.abspath(os.path.expanduser(path))
84 output = os.popen(cmd).read()
/developtools/integration_verification/DeployDevice/resource/common/
Dportalocker.py2 import os
34 if os.path.isfile(self.lockfile):
36 mark_file_mtime = os.path.getmtime(self.lockfile)
38 os.remove(self.lockfile)
45 self.fd = os.open(self.lockfile, os.O_CREAT|os.O_EXCL|os.O_RDWR)
63 os.close(self.fd)
64 os.unlink(self.lockfile)
Dcbg_start.py2 import os
42 lock_file_abspath = os.path.join(WORKSPACE, lock_name)
50 if not is_update_script and os.path.exists(upgrade_script_path):
57 …if os.path.isdir(upgrade_script_path) and os.path.isdir(os.path.join(upgrade_script_path, ".git")):
70 if os.path.isdir(upgrade_script_path):
84 current_path = os.path.abspath(os.path.dirname(__file__))
96 if not os.path.isdir(WORKSPACE):
98 os.makedirs(WORKSPACE)
112 upgrade_script_path = os.path.join(WORKSPACE, project_name)
120 excute_file = os.path.join(upgrade_script_path, "src", "controller.py")
[all …]
/developtools/integration_verification/DeployDevice/src/util/
Dfile_locker.py3 import os
35 if os.path.isfile(self.lockfile):
37 mark_file_mtime = os.path.getmtime(self.lockfile)
39 os.remove(self.lockfile)
46 self.fd = os.open(self.lockfile, os.O_CREAT|os.O_EXCL|os.O_RDWR)
64 os.close(self.fd)
65 os.unlink(self.lockfile)
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/
DliteOsUpgrade_RK3568_app.py5 import os
104 …scriptpath = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__fil…
106 local_image_path = os.path.join(version_savepath)
108 loader_tool_path = os.path.join(scriptpath, "resource", "RK3568_tool", "upgrade_tool.exe")
110 mini_path = os.path.join(local_image_path, "mini_system_test", "L2_mini_system_test.py")
111 archive_path = os.path.join(version_savepath)
178 os.system("hdc_std -t %s shell hilog -w start" % sn)
179 os.system("hdc_std -t %s shell hilog -w start -t kmsg" % sn)
182 screenshot_path = os.path.join(local_image_path, "screenshot")
184 resource_path = os.path.join(screenshot_path, 'xdevice_smoke')
[all …]
DliteOsUpgrade_L2_app - 副本.py5 import os
89 … version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name)
93 version_savepath = os.path.join(dir_path, version_name)
104 save_path_file = os.path.join(dir_path, "record", "%s%s" % (save_file_name, ".txt"))
106 …if not self.excutedown(version_path, os.path.join(version_savepath, "img"), save_path_file, False):
111 saveVersion(save_path_file, os.path.join(version_savepath, "img"))
130 failed_mark = os.path.join(download_dir, failed_file)
131 lock_path = os.path.join(download_dir, lock_suffix)
152 zip_name = os.path.basename(source_path)
153 ret = extractZipFile(os.path.join(download_dir, zip_name), download_dir)
[all …]
DliteOsUpgrade_L1_shequ_test_app.py5 import os
91 … version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name)
95 version_savepath = os.path.join(dir_path, version_name)
106 save_path_file = os.path.join(dir_path, "record", "%s%s" % (save_file_name, ".txt"))
107 …if not self.excutedown(version_path, os.path.join(version_savepath, "img"), save_path_file, False):
112 saveVersion(save_path_file, os.path.join(version_savepath, "img"))
131 failed_mark = os.path.join(download_dir, failed_file)
132 lock_path = os.path.join(download_dir, lock_suffix)
153 zip_name = os.path.basename(source_path)
154 ret = extractZipFile(os.path.join(download_dir, zip_name), download_dir)
[all …]
DliteOsUpgrade_L1_shequ_app copy.py5 import os
93 … version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name)
97 version_savepath = os.path.join(dir_path, version_name)
108 save_path_file = os.path.join(dir_path, "record", "%s%s" % (save_file_name, ".txt"))
109 …if not self.excutedown(version_path, os.path.join(version_savepath, "img"), save_path_file, False):
114 saveVersion(save_path_file, os.path.join(version_savepath, "img"))
133 failed_mark = os.path.join(download_dir, failed_file)
134 lock_path = os.path.join(download_dir, lock_suffix)
155 zip_name = os.path.basename(source_path)
156 ret = extractZipFile(os.path.join(download_dir, zip_name), download_dir)
[all …]
DliteOsUpgrade_L1_app.py5 import os
89 … version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name)
93 version_savepath = os.path.join(dir_path, version_name)
104 save_path_file = os.path.join(dir_path, "record", "%s%s" % (save_file_name, ".txt"))
105 …if not self.excutedown(version_path, os.path.join(version_savepath, "img"), save_path_file, False):
110 saveVersion(save_path_file, os.path.join(version_savepath, "img"))
114 suc_mark = os.path.join(version_savepath, "scriptfile", suc_file)
116 os.path.join(version_savepath, "scriptfile"), suc_mark, True):
139 failed_mark = os.path.join(download_dir, failed_file)
140 lock_path = os.path.join(download_dir, lock_suffix)
[all …]
/developtools/hdc/scripts/
Ddev_hdc_test.py30 import os
61 if os.path.exists(".hdctester.conf"):
106 os.remove(".hdctester.conf")
112 fd = os.open(".hdctester.conf", os.O_WRONLY | os.O_CREAT, 0o755)
113 os.write(fd, json_str.encode())
114 os.close(fd)
196 cls.testcase_path = os.path.join(opt)
210 if os.path.isfile(path):
221 return os.path.join(GP.local_path, path)
271 local_path = os.path.join(GP.local_path, local)
[all …]
/developtools/integration_verification/cases/daily/mini_system/
DL2_mini_system_test.py18 import os
27 if not os.path.exists(dir_path):
32 for root, dirs, files in os.walk(dir_path):
34 if not os.path.islink(os.path.join(root, name)):
35 sz = os.path.getsize(os.path.join(root, name))
44 …with open(os.path.join(args.save_path, 'L2_mini_test_{}.log'.format(args.device_num)), mode='a', e…
73 …with open(os.path.join(args.save_path, 'mini_test_{}.bat'.format(args.device_num)), mode='a', enco…
82 …with open(os.path.join(args.save_path, 'mini_test_{}.bat'.format(args.device_num)), mode='a', enco…
178 target_dir = os.path.normpath(os.path.join(args.archive_path, "system"))
187 target_dir = os.path.normpath(os.path.join(args.archive_path, "data"))
[all …]
Drk3568_chipset_only_test.py17 import os
26 if not os.path.exists(dir_path):
31 for root, dirs, files in os.walk(dir_path):
33 if not os.path.islink(os.path.join(root, name)):
34 sz = os.path.getsize(os.path.join(root, name))
44 …with open(os.path.join(args.save_path, 'L2_mini_test_{}.log'.format(args.device_num)), mode='a', e…
73 …with open(os.path.join(args.save_path, 'mini_test_{}.bat'.format(args.device_num)), mode='a', enco…
82 …with open(os.path.join(args.save_path, 'mini_test_{}.bat'.format(args.device_num)), mode='a', enco…
172 target_dir = os.path.normpath(os.path.join(args.archive_path, "system"))
181 target_dir = os.path.normpath(os.path.join(args.archive_path, "data"))
[all …]
DL0_mini_system_test.py18 import os
30 if not os.path.exists(dir_path):
35 for root, dirs, files in os.walk(dir_path):
37 sz = os.path.getsize(os.path.join(root, name))
38 print('{} : {}byte'.format(os.path.join(root, name), sz))
48 with open(os.path.join(args.save_path, 'L0_mini_test.log'),
120 target_file = os.path.normpath(os.path.join(args.archive_path,
122 ret_size = os.path.getsize(target_file)/1024/1024
126 target_dir = os.path.normpath(os.path.join(args.archive_path, "libs"))
/developtools/syscap_codec/tools/
Dsyscap_collector.py16 import os
43 flags = os.O_WRONLY | os.O_CREAT
46 filename = os.path.join(output_path, f'{product_name}.json')
47 with os.fdopen(os.open(filename, flags, modes), 'w') as f:
102 bundle_json_path = os.path.join(path, 'bundle.json')
128 sep_list.remove(os.sep)
129 component_path = component_path.replace(sep_list[0], os.sep)
140 component_path = os.path.join(project_path, component_relpath)
190 for item in os.scandir(subsystem_path):
203 if os.path.islink(file_path):
[all …]
/developtools/smartperf_host/trace_streamer/gn/
D.emscripten15 import os
18 thisFile = os.getenv('EM_CONFIG')
23 rootDir = os.path.dirname(os.path.dirname(thisFile))
24 emsdkPath = os.path.join(rootDir, 'prebuilts/emsdk/emsdk')
25 nodePath = os.path.join(rootDir, 'prebuilts/emsdk/node/16.20.0_64bit')
27 LLVM_ROOT = os.path.join(emsdkPath, 'bin')
28 NODE_JS = os.path.join(nodePath, 'bin/node')
29 EMSCRIPTEN_ROOT = os.path.join(emsdkPath, 'emscripten')

1234567