mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-28 15:58:43 +00:00
rt_app: added an option to force install.
Userful when the target device already has rt-app on it, but you want to replace it with the version from your host.
This commit is contained in:
parent
f43daacd41
commit
705ce9ae40
@ -137,6 +137,12 @@ class RtApp(Workload):
|
|||||||
If set to ``True``, rt-app binary will be uninstalled from the device
|
If set to ``True``, rt-app binary will be uninstalled from the device
|
||||||
at the end of the run.
|
at the end of the run.
|
||||||
"""),
|
"""),
|
||||||
|
Parameter('force_install', kind=bool, default=False,
|
||||||
|
description="""
|
||||||
|
If set to ``True``, rt-app binary will always be deployed to the
|
||||||
|
target device at the begining of the run, regardless of whether it
|
||||||
|
was already installed there.
|
||||||
|
"""),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize(self, context):
|
def initialize(self, context):
|
||||||
@ -210,7 +216,7 @@ class RtApp(Workload):
|
|||||||
|
|
||||||
def _deploy_rt_app_binary_if_necessary(self):
|
def _deploy_rt_app_binary_if_necessary(self):
|
||||||
# called from initialize() so gets invoked once per run
|
# called from initialize() so gets invoked once per run
|
||||||
if not self.device.is_installed(BINARY_NAME):
|
if self.force_install or not self.device.is_installed(BINARY_NAME):
|
||||||
if not self.host_binary:
|
if not self.host_binary:
|
||||||
message = '''rt-app is not installed on the device and could not be
|
message = '''rt-app is not installed on the device and could not be
|
||||||
found in workload resources'''
|
found in workload resources'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user