mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-29 22:24:51 +00: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:
		| @@ -147,11 +147,13 @@ class Sysbench(Workload): | ||||
|             extract_threads_fairness_metric('execution time', next(fh), context.output) | ||||
|  | ||||
|     def teardown(self, context): | ||||
|         self.target.remove(self.target_results_file) | ||||
|         if self.cleanup_assets: | ||||
|             self.target.remove(self.target_results_file) | ||||
|  | ||||
|     @once | ||||
|     def finalize(self, context): | ||||
|         self.target.uninstall('sysbench') | ||||
|         if self.uninstall: | ||||
|             self.target.uninstall('sysbench') | ||||
|  | ||||
|     def _build_command(self, **parameters): | ||||
|         param_strings = ['--{}={}'.format(k.replace('_', '-'), v) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user