mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
fw/target/manager: Update to use module_name_set
Allow for comparing which modules are installed on a Target when additional module configuration is present.
This commit is contained in:
parent
977ce4995d
commit
f60032a59d
@ -26,6 +26,7 @@ from wa.framework.target.descriptor import (get_target_description,
|
|||||||
instantiate_assistant)
|
instantiate_assistant)
|
||||||
from wa.framework.target.info import get_target_info, get_target_info_from_cache, cache_target_info
|
from wa.framework.target.info import get_target_info, get_target_info_from_cache, cache_target_info
|
||||||
from wa.framework.target.runtime_parameter_manager import RuntimeParameterManager
|
from wa.framework.target.runtime_parameter_manager import RuntimeParameterManager
|
||||||
|
from wa.utils.types import module_name_set
|
||||||
|
|
||||||
|
|
||||||
class TargetManager(object):
|
class TargetManager(object):
|
||||||
@ -100,7 +101,7 @@ class TargetManager(object):
|
|||||||
# If module configuration has changed form when the target info
|
# If module configuration has changed form when the target info
|
||||||
# was previously cached, it is possible additional info will be
|
# was previously cached, it is possible additional info will be
|
||||||
# available, so should re-generate the cache.
|
# available, so should re-generate the cache.
|
||||||
if set(info.modules) != set(self.target.modules):
|
if module_name_set(info.modules) != module_name_set(self.target.modules):
|
||||||
info = get_target_info(self.target)
|
info = get_target_info(self.target)
|
||||||
cache_target_info(info, overwrite=True)
|
cache_target_info(info, overwrite=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user