1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +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:
Sergei Trofimov 2015-06-30 15:54:58 +01:00
parent 6affc484f4
commit a27768fe21

View File

@ -132,6 +132,11 @@ class RtApp(Workload):
'''),
Parameter('taskset_mask', kind=int,
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):
@ -199,6 +204,7 @@ class RtApp(Workload):
context.result.add_metric('crit_count', crit_count, 'count')
def finalize(self, context):
if self.uninstall_on_exit:
self.device.uninstall(self.device_binary)
self.device.execute('rm -rf {}'.format(self.device_working_directory))