Home
last modified time | relevance | path

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

123456

/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/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/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))
/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/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/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/profiler/host/smartperf/trace_streamer/build/
Dprotoc_w.sh16 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/smartperf_host/trace_streamer/build/
Dprotoc_w.sh15 import os
20 THIS_DIR = os.path.dirname(os.path.abspath(__file__))
21 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, "../../.."))
26 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, ".."))
28 OHOS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2])
29 LIBCXX_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[1], "ndk/libcxx/linux_x86_64")
30 SUBSYS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR)
37 PROTOC = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOC_NAME)
38 OPT_PLUGIN_PROTOREADER_PATH = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOCREADER_PLUGIN)
39 OPT_PLUGIN_PROTOREADER = "--plugin=protoc-gen-plugin=" + os.path.join(PROJECT_TOP, sys.argv[2], TAI…
[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
42 for root, _, file_names in os.walk(folder):
44 [os.path.abspath(os.path.realpath(
45os.path.join(root, f) if real_path else os.path.join(root, f))) if apply_abs else os.path.relpath(
46os.path.realpath(os.path.join(root, f) if real_path else os.path.join(root, f))) for f in file_nam…
47 if p_filter(os.path.join(root, f))])
55 return os.path.abspath(os.path.expanduser(path))
82 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_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_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)
180 screenshot_path = os.path.join(local_image_path, "screenshot")
181 resource_path = os.path.join(screenshot_path, "resource")
183 py_path = os.path.join(resource_path, "capturescreentest.py")
184 new_report_path = os.path.join(report_path, "result")
[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 …]
DliteOsUpgrade_L1_shequ_app.py5 import os
94 … version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name)
98 version_savepath = os.path.join(dir_path, version_name)
109 save_path_file = os.path.join(dir_path, "record", "%s%s" % (save_file_name, ".txt"))
110 …if not self.excutedown(version_path, os.path.join(version_savepath, "img"), save_path_file, False):
115 saveVersion(save_path_file, os.path.join(version_savepath, "img"))
134 failed_mark = os.path.join(download_dir, failed_file)
135 lock_path = os.path.join(download_dir, lock_suffix)
156 zip_name = os.path.basename(source_path)
157 ret = extractZipFile(os.path.join(download_dir, zip_name), download_dir)
[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
29 if not os.path.exists(dir_path):
34 for root, dirs, files in os.walk(dir_path):
36 sz = os.path.getsize(os.path.join(root, name))
37 print('{} : {}byte'.format(os.path.join(root, name), sz))
46 …with open(os.path.join(args.save_path, 'L0_mini_test.log'), mode='a', encoding='utf-8') as log_fil…
107 target_file = os.path.normpath(os.path.join(args.archive_path, "OHOS_image.bin"))
108 ret_size = os.path.getsize(target_file)/1024/1024
112 target_dir = os.path.normpath(os.path.join(args.archive_path, "libs"))
/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')
/developtools/profiler/host/smartperf/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')

123456