mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	recentfling: Add the ability to specify the device_name
Not all devices are supported by recentfling, but there is usually a device that is supported and has a similar screensize. Let the recentfling workload specify the device to let us run it on more devices.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							ba6889ea7f
						
					
				
				
					commit
					ea22bc062e
				
			| @@ -53,6 +53,17 @@ class Recentfling(Workload): | ||||
|                   through the recent apps list (in which the assumption is | ||||
|                   there are already recently started apps in the list. | ||||
|                   """), | ||||
|         Parameter('device_name', kind=str, | ||||
|                   description=""" | ||||
|                   If set, recentfling will use the fling parameters for this | ||||
|                   device instead of automatically guessing the device.  This can | ||||
|                   also be used if the device is not supported by recentfling, | ||||
|                   but its screensize is similar to that of one that is supported. | ||||
|  | ||||
|                   For possible values, check your recentfling.sh.  At the time | ||||
|                   of writing, valid values are: 'shamu', 'hammerhead', 'angler', | ||||
|                   'ariel', 'mtp8996', 'bullhead' or 'volantis'. | ||||
|                   """), | ||||
|     ] | ||||
|  | ||||
|     def initialise(self, context):  # pylint: disable=no-self-use | ||||
| @@ -72,6 +83,8 @@ class Recentfling(Workload): | ||||
|         args = '-i {} '.format(self.loops) | ||||
|         if not self.start_apps: | ||||
|             args += '-N ' | ||||
|         if self.device_name is not None: | ||||
|             args += '-d {}'.format(self.device_name) | ||||
|         cmd = "echo $$>{dir}/pidfile; cd {bindir}; exec ./recentfling.sh {args}; rm {dir}/pidfile" | ||||
|         cmd = cmd.format(args=args, dir=self.device.working_directory, bindir=self.device.binaries_directory) | ||||
|         try: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user