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:
@ -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):
|
||||
|
Reference in New Issue
Block a user