mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	framework/target: rename get_target_descriptions
Rename get_target_descriptions to list_target_descriptions.
This commit is contained in:
		
				
					committed by
					
						 marcbonnici
						marcbonnici
					
				
			
			
				
	
			
			
			
						parent
						
							7bd99637c1
						
					
				
				
					commit
					0a67e94709
				
			| @@ -21,7 +21,7 @@ from devlib.utils.misc import memoized | ||||
| from wa.framework import pluginloader | ||||
| from wa.framework.configuration.core import get_config_point_map | ||||
| from wa.framework.exception import ConfigError | ||||
| from wa.framework.target.descriptor import get_target_descriptions | ||||
| from wa.framework.target.descriptor import list_target_descriptions | ||||
| from wa.utils.types import obj_dict | ||||
|  | ||||
| GENERIC_CONFIGS = ["device_config", "workload_parameters", | ||||
| @@ -42,7 +42,7 @@ class PluginCache(object): | ||||
|         self.sources = [] | ||||
|         self.plugin_configs = defaultdict(lambda: defaultdict(dict)) | ||||
|         self.global_alias_values = defaultdict(dict) | ||||
|         self.targets = {td.name: td for td in get_target_descriptions()} | ||||
|         self.targets = {td.name: td for td in list_target_descriptions()} | ||||
|  | ||||
|         # Generate a mapping of what global aliases belong to | ||||
|         self._global_alias_map = defaultdict(dict) | ||||
|   | ||||
| @@ -16,7 +16,7 @@ from wa.utils.types import list_of_strings, list_of_ints, regex | ||||
| from wa.utils.misc import isiterable | ||||
|  | ||||
|  | ||||
| def get_target_descriptions(loader=pluginloader): | ||||
| def list_target_descriptions(loader=pluginloader): | ||||
|     targets = {} | ||||
|     for cls in loader.list_target_descriptors(): | ||||
|         descriptor = cls() | ||||
|   | ||||
| @@ -2,7 +2,7 @@ import logging | ||||
|  | ||||
| from wa.framework import signal | ||||
| from wa.framework.plugin import Parameter | ||||
| from wa.framework.target.descriptor import (get_target_descriptions, | ||||
| from wa.framework.target.descriptor import (list_target_descriptions, | ||||
|                                             instantiate_target, | ||||
|                                             instantiate_assistant) | ||||
| from wa.framework.target.info import TargetInfo | ||||
| @@ -83,7 +83,7 @@ class TargetManager(object): | ||||
|         self.rpm.commit_runtime_parameters(parameters) | ||||
|  | ||||
|     def _init_target(self): | ||||
|         target_map = {td.name: td for td in get_target_descriptions()} | ||||
|         target_map = {td.name: td for td in list_target_descriptions()} | ||||
|         if self.target_name not in target_map: | ||||
|             raise ValueError('Unknown Target: {}'.format(self.target_name)) | ||||
|         tdesc = target_map[self.target_name] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user