mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
AndroidResource: Add a UiautoApk resource type.
When moving to Uiautomation 2, tests are now complied into apk files rather than jar files. To avoid conflicts with regular workload apks a new resource type is added to retrieve the test files which will be renamed to have the extension .uiautoapk
This commit is contained in:
parent
5d8305cfdc
commit
bc6af25366
@ -41,3 +41,15 @@ class ApkFile(FileResource):
|
||||
|
||||
def __str__(self):
|
||||
return '<{}\'s {} APK>'.format(self.owner, self.platform)
|
||||
|
||||
|
||||
class UiautoApkFile(FileResource):
|
||||
|
||||
name = 'uiautoapk'
|
||||
|
||||
def __init__(self, owner, platform=None):
|
||||
super(UiautoApkFile, self).__init__(owner)
|
||||
self.platform = platform
|
||||
|
||||
def __str__(self):
|
||||
return '<{}\'s {} UiAuto APK>'.format(self.owner, self.platform)
|
||||
|
Loading…
x
Reference in New Issue
Block a user