mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	ResourceGetter: Updated to check if an apk is a uiautomation test apk.
The getter now checks the apk package name to distinguish between a regular android apk and a uiautomator apk.
This commit is contained in:
		| @@ -563,6 +563,7 @@ def get_from_list_by_extension(resource, filelist, extension, version=None, vari | |||||||
|             filelist = [ff for ff in filelist if version.lower() in os.path.basename(ff).lower()] |             filelist = [ff for ff in filelist if version.lower() in os.path.basename(ff).lower()] | ||||||
|     if extension == 'apk': |     if extension == 'apk': | ||||||
|         filelist = [ff for ff in filelist if not ApkInfo(ff).native_code or resource.platform in ApkInfo(ff).native_code] |         filelist = [ff for ff in filelist if not ApkInfo(ff).native_code or resource.platform in ApkInfo(ff).native_code] | ||||||
|  |         filelist = [ff for ff in filelist if resource.uiauto == ('com.arm.wlauto.uiauto' in ApkInfo(ff).package)] | ||||||
|     if len(filelist) == 1: |     if len(filelist) == 1: | ||||||
|         return filelist[0] |         return filelist[0] | ||||||
|     elif not filelist: |     elif not filelist: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user