mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	geekbench: Added check whether device is rooted
This commit is contained in:
		@@ -94,6 +94,10 @@ class Geekbench(AndroidUiAutoBenchmark):
 | 
			
		||||
        self.uiauto_params['times'] = self.times
 | 
			
		||||
        self.run_timeout = 5 * 60 * self.times
 | 
			
		||||
 | 
			
		||||
    def initialize(self, context):
 | 
			
		||||
        if self.device.is_rooted:
 | 
			
		||||
            raise WorkloadError('Geekbench workload only works on rooted devices.')
 | 
			
		||||
 | 
			
		||||
    def init_resources(self, context):
 | 
			
		||||
        self.apk_file = context.resolver.get(wlauto.common.android.resources.ApkFile(self), version=self.version)
 | 
			
		||||
        self.uiauto_file = context.resolver.get(wlauto.common.android.resources.JarFile(self))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user