mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 20:02:39 +01:00
workloads: Update to better utilize cleanup_assets
and uninstall
Update the workload classes to attempt and standardize the use of the `cleanup_assets` parameter and the newly added `uninstall` parameter
This commit is contained in:
@@ -90,8 +90,10 @@ class Hackbench(Workload):
|
||||
context.add_metric(label, float(match.group(1)), units)
|
||||
|
||||
def teardown(self, context):
|
||||
self.target.execute('rm -f {}'.format(self.target_output_file))
|
||||
if self.cleanup_assets:
|
||||
self.target.execute('rm -f {}'.format(self.target_output_file))
|
||||
|
||||
@once
|
||||
def finalize(self, context):
|
||||
self.target.uninstall(self.binary_name)
|
||||
if self.uninstall:
|
||||
self.target.uninstall(self.binary_name)
|
||||
|
Reference in New Issue
Block a user