mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	fw/workload: Add the uninstall parameter to the base workload class
				
					
				
			In additional to being able to specify whether the APK should be uninstalled as part of a `APKWorkload`s teardown add the `uninstall` parameter to the base `workload` class in order to specify whether any binaries installed for a workload should be uninstalled again.
This commit is contained in:
		@@ -51,6 +51,12 @@ class Workload(TargetedPlugin):
 | 
			
		||||
                  If ``True``, assets that are deployed or created as part of the
 | 
			
		||||
                  workload will be removed again from the device.
 | 
			
		||||
                  """),
 | 
			
		||||
        Parameter('uninstall', kind=bool,
 | 
			
		||||
                  default=True,
 | 
			
		||||
                  description="""
 | 
			
		||||
                  If ``True``, executables that are installed to the device
 | 
			
		||||
                  as part of the workload will be uninstalled again.
 | 
			
		||||
                  """),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    # Set this to True to mark that this workload poses a risk of exposing
 | 
			
		||||
@@ -225,6 +231,7 @@ class ApkWorkload(Workload):
 | 
			
		||||
                  """),
 | 
			
		||||
        Parameter('uninstall', kind=bool,
 | 
			
		||||
                  default=False,
 | 
			
		||||
                  override=True,
 | 
			
		||||
                  description="""
 | 
			
		||||
                  If ``True``, will uninstall workload\'s APK as part of teardown.'
 | 
			
		||||
                  """),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user