/test/framework/harnesses/host_controller/build/ |
D | build_provider.py | 65 tempdir_base = os.path.join(os.getcwd(), "tmp") 66 if not os.path.exists(tempdir_base): 83 def SetDeviceImage(self, name, path): argument 85 self._device_images[name] = path 107 def SetDeviceImageZip(self, path, full_device_images=False): argument 116 dest_path = path + ".dir" 118 with zipfile.ZipFile(path, 'r') as zip_ref: 120 self.SetDeviceImage(common.FULL_ZIPFILE, path) 124 self.SetDeviceImage("gsi-zipfile", path) 127 if os.path.exists(dest_path): [all …]
|
D | build_provider_gcs.py | 58 def Fetch(self, path, full_device_images=False, set_suite_as=None): argument 72 if not path.startswith("gs://"): 73 path = "gs://" + re.sub("^/*", "", path) 74 path = re.sub("/*$", "", path) 80 if not gcs_utils.IsGcsFile(gsutil_path, path): 82 if "latest.zip" in path: 83 gsutil_ls_path = re.sub("latest.zip", "*.zip", path) 87 path = lines_gsutil_ls[-1] 88 copy_command = "%s cp %s %s" % (gsutil_path, path, 93 path) [all …]
|
D | build_provider_test.py | 59 path = os.path.join(self._temp_dir, name) 60 with open(path, "w"): 62 return path 75 zip_path = os.path.join(self._temp_dir, name) 77 for path in paths: 78 zip_file.write(empty_path, path) 89 os.path.join("android-vts", "tools", "vts-tradefed")) 107 "vti-global-config-prod.zip", os.path.join("test", "prod.config")) 115 os.path.exists(self._build_provider.GetTestSuitePackage("vts"))) 132 os.path.exists(self._build_provider.GetConfigPackage("prod"))) [all …]
|
/test/vts/script/ |
D | create-test-project.py | 31 VTS_TEST_CASE_PATH = os.path.join(VTS_PATH, 'testcases') 64 test_dir_under_testcases = os.path.normpath( 88 self.vts_test_case_dir = os.path.abspath( 89 os.path.join(self.build_top, VTS_TEST_CASE_PATH)) 91 self.test_dir = os.path.abspath( 92 os.path.join(self.vts_test_case_dir, test_dir_under_testcases)) 98 if os.path.exists(self.test_dir): 144 path = self.test_dir 145 while not path == self.vts_test_case_dir: 146 target = os.path.join(path, PYTHON_INIT_FILE_NAME) [all …]
|
/test/vts/utils/python/io/ |
D | file_util.py | 37 return os.path.join(dirpath, filename) 42 def Rmdirs(path, ignore_errors=False): argument 54 if os.path.exists(path): 56 shutil.rmtree(path, ignore_errors=ignore_errors) 63 def Mkdir(path, skip_if_exists=True): argument 79 if skip_if_exists and os.path.exists(path): 83 os.mkdir(path) 90 def Makedirs(path, skip_if_exists=True): argument 105 if skip_if_exists and os.path.exists(path): 109 os.makedirs(path)
|
/test/vts/compilation_tools/vtsc/test/ |
D | test_vtsc.py | 95 os.path.join(self._temp_dir, component_name + ".vts"), 101 os.path.join(self._temp_dir, component_name + ".vts"), 125 os.path.join(self._temp_dir, component_name + ".vts"), 131 os.path.join(self._temp_dir, component_name + ".vts"), 142 os.path.join(self._temp_dir, component_name + ".vts"), 149 os.path.join(self._output_dir, mode), 150 os.path.join(self._output_dir, mode, "") 154 canonical_source_file = os.path.join(self._canonical_dir, mode, 156 output_source_file = os.path.join(self._output_dir, mode, 175 output_dir = os.path.join(self._temp_dir, [all …]
|
/test/vts/testcases/template/binary_test/ |
D | binary_test.py | 18 import os.path 96 path = token 98 tag, path = token.split(self.TAG_DELIMITER) 99 self.working_directory[tag] = path 106 path = token 109 tag, path = token[:split], token[ 112 self.envp[tag] += ' %s' % path 114 self.envp[tag] = path 140 path = token 142 tag, path = token.split(self.TAG_DELIMITER) [all …]
|
/test/vts/utils/python/reporting/ |
D | report_file_utils_test.py | 95 os.path.join( 96 os.path.relpath(os.path.dirname(src_path), root_dir), 97 os.path.basename(src_path))) 100 os.path.join( 102 os.path.join( 103 os.path.relpath(os.path.dirname(src_path), root_dir), 104 os.path.basename(src_path)))) 123 self.assertEqual(dest_path, os.path.basename(src_path)) 126 os.path.join(_report_file_util._url_prefix, 127 os.path.basename(src_path))) [all …]
|
D | report_file_utils.py | 108 dir_path = os.path.dirname(src_path) 110 relative_path = os.path.basename(src_path) 116 relative_path = os.path.join( 117 os.path.relpath(dir_path, root_dir), relative_path) 121 relative_path = os.path.join(date, relative_path) 126 dest_path = os.path.join(self._destination_dir, relative_path) 145 parent_dir = os.path.dirname(dest_path) 146 if not os.path.exists(parent_dir): 172 src_path = os.path.join(temp_dir, os.path.basename(src_path)) 253 src_path = os.path.join(dirpath, filename)
|
/test/vts/utils/python/file/ |
D | target_file_utils.py | 54 def IsDirectory(path, shell): argument 64 return _Test(shell, "-d", path) 67 def FindFiles(shell, path, name_pattern, options=None): argument 84 cmd = "find %s -name \"%s\"" % (path, name_pattern) 88 logging.debug("%s: Shell command '%s' results: %s", path, cmd, results) 122 def GetPermission(path, shell): argument 135 cmd = "stat -c %%a %s" % path 137 logging.debug("%s: Shell command '%s' results: %s", path, cmd, results) 145 raise IOError("%s: Wrong number of access bits (%s)" % (path, 298 def assertPermissionsAndExistence(shell, path, check_permission): argument [all …]
|
/test/vts/utils/python/fuzzer/ |
D | corpus_manager.py | 110 self._gcs_path = os.path.join('corpus', branch, model) 191 dest_file_path = os.path.join(local_dest_folder, 192 os.path.basename(target_seed)) 236 dest_file_path = os.path.join(local_dest_folder, 237 os.path.basename(target_seed)) 294 local_measure_file = os.path.join( 299 remote_measure_file = os.path.join( 301 os.path.basename(local_measure_file)) 432 triggered_corpus = os.path.join( 435 high_priority = os.path.exists(triggered_corpus) [all …]
|
/test/framework/harnesses/host_controller/acloud/ |
D | acloud_client.py | 21 from os.path import expanduser 40 tmpdir_base = os.path.join(os.getcwd(), "tmp") 41 if not os.path.exists(tmpdir_base): 87 config_file = os.path.join(self._tmpdir, 'acloud.config'), 88 report_file = os.path.join(self._tmpdir, 'acloud_report.json'), 89 log_file = os.path.join(self._tmpdir, 'acloud.log'), 112 config_file = os.path.join(self._tmpdir, 'acloud.config'), 113 report_file = os.path.join(self._tmpdir, 'acloud_report.json'), 114 log_file = os.path.join(self._tmpdir, 'acloud.log'), 128 report_file = os.path.join(self._tmpdir, 'acloud_report.json') [all …]
|
/test/vts/utils/python/os/ |
D | path_utils.py | 19 def JoinTargetPath(path, *paths): argument 29 return posixpath.join(path, *paths) 32 def TargetBaseName(path): argument 41 return posixpath.basename(path) 44 def TargetDirName(path): argument 53 return posixpath.dirname(path) 56 def TargetNormPath(path): argument 65 return posixpath.normpath(path)
|
/test/vts/utils/python/coverage/ |
D | sancov_utils.py | 50 _SEARCH_PATHS = [(os.path.join('data', 'asan', 'vendor', 'bin'), 51 None), (os.path.join('vendor', 'bin'), None), 52 (os.path.join('data', 'asan', 'vendor', 'lib'), 53 32), (os.path.join('vendor', 'lib'), 32), (os.path.join( 55 'lib64'), 64), (os.path.join('vendor', 'lib64'), 64)] 181 for path in self._exclude_paths: 182 if file.startswith(path): 235 open(os.path.join(resource_path, 251 parts = os.path.normpath(str(project_name)).split( 297 os.path.join(self._device_resource_dict[serial], [all …]
|
D | coverage_utils.py | 110 self.local_coverage_path = os.path.join(LOCAL_COVERAGE_PATH, 112 if os.path.exists(self.local_coverage_path): 187 base_src_file_name = os.path.basename(src_file_name) 245 path = TARGET_COVERAGE_PATH 247 path = path_utils.JoinTargetPath(path, path_suffix) 322 path = path_utils.JoinTargetPath(TARGET_COVERAGE_PATH, pid) 324 files = dut.adb.shell("find %s -name \"*.gcda\"" % path) 327 logging.info("No gcda files found in path: \"%s\"", path) 336 basename = os.path.basename(gcda.strip()) 337 file_name = os.path.join(self.local_coverage_path, basename) [all …]
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_retry.py | 95 if not os.path.exists(local_results_dir): 100 result_zip = os.path.join(local_results_dir, 171 tools_path = os.path.dirname(self.console.test_suite_info[args.suite]) 172 results_path = os.path.join(tools_path, common._RESULTS_BASE_PATH) 184 if os.path.isdir(os.path.join(results_path, result)) 185 and not os.path.islink(os.path.join(results_path, result)) 203 latest_result_xml_path = os.path.join( 207 latest_result_xml_path = os.path.join(results_path, "latest", 209 if not os.path.exists(latest_result_xml_path): 210 latest_result_xml_path = os.path.join( [all …]
|
D | command_gsispl.py | 69 if os.path.isfile(args.gsi): 91 if os.path.isabs(args.version_from_path) and os.path.exists( 99 tempdir_base = os.path.join(os.getcwd(), "tmp") 100 if not os.path.exists(tempdir_base): 108 img_path = os.path.join(dest_path, "boot.img") 109 if not os.path.exists(img_path): 133 output_path = os.path.join( 134 os.path.dirname(os.path.abspath(gsi_path)), 137 os.path.join(os.getcwd(), "..", "bin",
|
D | command_release.py | 174 for path in _REPACKAGE_ADDITIONAL_FILE_LIST: 175 additional_file = os.path.join(bucket, path) 179 (os.path.basename(path), 180 os.path.basename(fetched_path))) 182 "gcs"].GetAdditionalFile(os.path.basename(path)) 183 vtslab_package.write(additional_file_path, path) 188 additional_bin = os.path.join(bucket, bin) 192 (os.path.basename(bin), 193 os.path.basename(fetched_path))) 195 "gcs"].GetAdditionalFile(os.path.basename(bin)) [all …]
|
/test/vts-testcase/kernel/ltp/shell_environment/definitions/ |
D | directory_exists.py | 62 commands = ["ls %s" % path for path in self._paths] 66 path for path, fail in zip(self._paths, map(bool, results)) if fail 76 commands = ["mkdir -p %s" % path for path in self._failed_paths] 81 commands = ["rm -rf %s" % path for path in self._failed_paths]
|
D | path_permission.py | 66 commands = ["stat -c {}a {}".format('%', path) for path in self._paths] 70 (path, permission, result) 71 for path, permission, result in zip(self._paths, self._permissions, 84 commands = ["chmod {} {}".format(permission, path) 85 for (path, permission, result) in self._failed_paths] 90 commands = ["chmod {} {}".format(original, path) 91 for (path, permission, original) in self._failed_paths]
|
/test/vts-testcase/fuzz/script/config/ |
D | config_gen.py | 47 self._project_path = os.path.join(self._android_build_top, 'test', 49 self._template_dir = os.path.join(self._project_path, 'script', 51 sys.path.append( 52 os.path.join(self._android_build_top, 'test', 'vts-testcase', 'hal', 79 config_dir = os.path.join(self._project_path, 'config') 84 file_path = os.path.join(base_dir, file_name) 102 bp_template_path = os.path.join(self._template_dir, 'template.bp') 103 xml_template_path = os.path.join(self._template_dir, 'template.xml') 114 config_dir = os.path.join( 117 bp_file_path = os.path.join(config_dir, 'Android.bp') [all …]
|
/test/vts/testcases/host/camera_its/ |
D | CameraITSTest.py | 79 os.path.abspath(os.path.join(self.data_file_path, 'CameraITS'))) 130 its_path = os.path.join(self.its_path, "pymodules") 145 'python', os.path.join(self.its_path, testpath), self.device_arg, 149 outpath = os.path.join(outdir, testname + "_stdout.txt") 150 errpath = os.path.join(outdir, testname + "_stderr.txt") 175 os.path.join("tests", scene, s) 176 for s in os.listdir(os.path.join(its_path, "tests", scene)) 202 … name_func=lambda path: "%s_%s" % (re.split("/|\.", path)[-3], re.split("/|\.", path)[-2]))
|
/test/vts/runners/host/ |
D | utils.py | 103 def abs_path(path): argument 112 return os.path.abspath(os.path.expanduser(path)) 115 def create_dir(path): argument 121 full_path = abs_path(path) 122 if not os.path.exists(full_path): 194 for path in paths: 195 p = abs_path(path) 198 name, ext = os.path.splitext(fname) 225 if not os.path.isfile(file_full_path): 231 new_path = os.path.join(base_path, file_full_path) [all …]
|
/test/vts-testcase/fuzz/template/iface_fuzzer_test/ |
D | iface_fuzzer_test.py | 38 _VTS_SPEC_DIR_TARGET = os.path.join(config.FUZZER_TEST_DIR, 'spec') 49 src_dir = os.path.join(self.data_file_path, 'spec', 'hardware', 51 dst_dir = os.path.join(self._VTS_SPEC_DIR_TARGET, hal_name_dir, 57 asan_path = os.path.join(self.data_file_path, 'DATA', 'asan', 'system') 58 driver32 = os.path.join(asan_path, 'lib', driver_name) 59 driver64 = os.path.join(asan_path, 'lib64', driver_name) 78 spec_dirs = [os.path.join(self._VTS_SPEC_DIR_TARGET, hal_name_dir, 85 os.path.join(self._VTS_SPEC_DIR_TARGET, 117 bin_host_path = os.path.join(self.data_file_path, 'DATA', 'bin',
|
/test/framework/harnesses/host_controller/gsi/ |
D | change_security_patch_ver.sh | 190 for path in ${BUILD_PROP_PATH_LIST[@]}; do 191 if [ -f "${MOUNT_POINT}${path}" ]; then 192 BUILD_PROP_MOUNT_PATH="${MOUNT_POINT}${path}" 193 BUILD_PROP_PATH=${path} 194 echo " ${path}" 237 for path in ${PROP_DEFAULT_PATH_LIST[@]}; do 238 if [ -f "${MOUNT_POINT}${path}" ]; then 239 PROP_DEFAULT_PATH=${path} 240 echo " ${path}"
|