mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
rt-app: do not unintall at then end by default
rt-app workload will no longer uninstall the executable at the end of the run by default. A parameter can be used to re-enabed the uninstall.
This commit is contained in:
parent
6affc484f4
commit
a27768fe21
@ -132,6 +132,11 @@ class RtApp(Workload):
|
|||||||
'''),
|
'''),
|
||||||
Parameter('taskset_mask', kind=int,
|
Parameter('taskset_mask', kind=int,
|
||||||
description='Constrain execution to specific CPUs.'),
|
description='Constrain execution to specific CPUs.'),
|
||||||
|
Parameter('uninstall_on_exit', kind=bool, default=False,
|
||||||
|
description="""
|
||||||
|
If set to ``True``, rt-app binary will be uninstalled from the device
|
||||||
|
at the end of the run.
|
||||||
|
"""),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize(self, context):
|
def initialize(self, context):
|
||||||
@ -199,7 +204,8 @@ class RtApp(Workload):
|
|||||||
context.result.add_metric('crit_count', crit_count, 'count')
|
context.result.add_metric('crit_count', crit_count, 'count')
|
||||||
|
|
||||||
def finalize(self, context):
|
def finalize(self, context):
|
||||||
self.device.uninstall(self.device_binary)
|
if self.uninstall_on_exit:
|
||||||
|
self.device.uninstall(self.device_binary)
|
||||||
self.device.execute('rm -rf {}'.format(self.device_working_directory))
|
self.device.execute('rm -rf {}'.format(self.device_working_directory))
|
||||||
|
|
||||||
def _deploy_rt_app_binary_if_necessary(self):
|
def _deploy_rt_app_binary_if_necessary(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user