1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-18 06:16:05 +01:00

Execution: Added a clean_up global config to delete WA files from devices

Adds a WA configuration point `clean_up` that will delete the WA binaries
directory  and the WA working directory from a device at the end of a WA run.
This commit is contained in:
Sebastian Goscik
2016-08-26 17:13:57 +01:00
parent 0a2afdfd84
commit 7713f02252
3 changed files with 9 additions and 0 deletions

@ -344,6 +344,11 @@ class Executor(object):
runner = self._get_runner(result_manager)
runner.init_queue(self.config.workload_specs)
runner.run()
if getattr(self.config, "clean_up", False):
self.logger.info('Clearing WA files from device')
self.device.delete_file(self.device.binaries_directory)
self.device.delete_file(self.device.working_directory)
self.execute_postamble()
def execute_postamble(self):