Lines Matching full:path

58 def parse_flash_settings(path, default_encryption=False):  # type: (str, bool) -> Tuple[List[Tuple[…  argument
59 file_name = os.path.basename(path)
69 with open(path, 'r') as f:
83 app_name = os.path.splitext(args['app']['file'])[0]
86 with open(path, 'r') as f:
101 if not os.path.dirname(p[1]) and 'partition' not in p[1]:
103 app_name = os.path.splitext(p[1])[0]
116 assert os.path.exists(artifact_index_file)
144 return os.path.join(self.artifact_info['work_dir'], self.artifact_info['build_dir'])
150 flash_arg_file = os.path.join(base_path, 'flasher_args.json')
152 flash_arg_file = os.path.join(base_path, 'download.config')
160 …flash_files, _, _, app_name = parse_flash_settings(os.path.join(self.dest_root_path, flash_arg_fil…
161 artifact_files = [os.path.join(base_path, p[1]) for p in flash_files]
162 artifact_files.append(os.path.join(base_path, app_name + '.elf'))
164 bootloader_path = os.path.join(base_path, 'bootloader', 'bootloader.bin')
171 …self.gitlab_inst.download_artifact(job_id, [os.path.join(os.path.dirname(base_path), 'sdkconfig')],
191 … base_path = os.path.join(self.artifact_info['work_dir'], self.artifact_info['build_dir'])
195 artifact_files = [os.path.join(base_path, fn) for fn in file_names]
199 …self.gitlab_inst.download_artifact(job_id, [os.path.join(os.path.dirname(base_path), 'sdkconfig')],
212 return os.path.join(self.artifact_info['app_dir'], output_dir)
217 …self.gitlab_inst.download_artifact(job_id, [os.path.join(base_path, 'sdkconfig')], self.dest_root_…
240 assert os.path.exists(self.binary_path)
268 assert os.path.exists(idf_path)
277 …return [os.path.join(self.binary_path, 'sdkconfig'), os.path.join(self.binary_path, '..', 'sdkconf…
288 if os.path.exists(i):
311 path = self._try_get_binary_from_local_fs()
312 if path:
313 return path
320 path = artifacts.download_artifact_files(self.app_files)
322 path = artifacts.download_artifacts()
324 if path:
325 return os.path.join(self.idf_path, path)
333 if os.path.splitext(fn)[1] == '.elf':
334 ret = os.path.join(self.binary_path, fn)
339 os.path.join(self.binary_path, file_path.strip()))
355 path = os.path.join(self.binary_path, self.IDF_FLASH_ARGS_FILE)
358 path = os.path.join(self.binary_path, self.IDF_DOWNLOAD_CONFIG_FILE)
366 … flash_files, encrypt_files, flash_settings, _ = parse_flash_settings(path, default_encryption)
383 partition_tool = os.path.join(self.idf_path,
387 assert os.path.exists(partition_tool)
392 for (_, path) in sorted(self.flash_files, key=lambda elem: elem[0]):
393 if 'partition' in os.path.split(path)[1]:
394 partition_file = os.path.join(self.binary_path, path)
403 errors.append((path, raw_error))
414 … raise ValueError('No partition table found for IDF binary path: {}{}{}'.format(self.binary_path,
464 overrides the parent method to provide exact path of sdkconfig for example tests
466 return [os.path.join(self.binary_path, '..', 'sdkconfig')]
469 # build folder of example path
470 path = os.path.join(self.idf_path, self.app_path, 'build')
471 if os.path.exists(path):
472 return path
475 # Path format: $IDF_PATH/build_examples/app_path_with_underscores/config/target
478 app_path_underscored = self.app_path.replace(os.path.sep, '_')
479 example_path = os.path.join(self.idf_path, self.case_group.LOCAL_BUILD_DIR)
481 if os.path.basename(dirpath) == app_path_underscored:
482 path = os.path.join(example_path, dirpath, self.config_name, self.target, 'build')
483 if os.path.exists(path):
484 return path
500 path = os.path.join(self.idf_path, self.app_path, 'build')
501 if os.path.exists(path):
502 return path
505 path = os.path.join(self.idf_path, 'tools', 'unit-test-app', 'build')
506 if os.path.exists(path):
507 # found, use bin in build path
508 return path
511path = os.path.join(self.idf_path, 'tools', 'unit-test-app', 'output', self.target, self.config_na…
512 if os.path.exists(path):
513 return path
546 assert os.path.exists(self.binary_path)
551 # TODO: to implement SSC get binary path
557 # TODO: to implement AT get binary path