1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +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:
Marc Bonnici 2017-06-05 14:16:12 +01:00
parent 4ce38fcd55
commit bb17590689

View File

@ -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()]
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 resource.uiauto == ('com.arm.wlauto.uiauto' in ApkInfo(ff).package)]
if len(filelist) == 1:
return filelist[0]
elif not filelist: