mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-29 22:24:51 +00:00
UiautoWorkloads: Updated to use apk files for uiautoamtion tests.
This commit is contained in:
@@ -116,7 +116,7 @@ class Applaunch(AndroidUxPerfWorkload):
|
||||
self.package = self.workload.package
|
||||
|
||||
def init_workload_resources(self, context):
|
||||
self.workload.uiauto_file = context.resolver.get(wlauto.common.android.resources.uiautoApkFile(self.workload))
|
||||
self.workload.uiauto_file = context.resolver.get(wlauto.common.android.resources.ApkFile(self.workload, uiauto=True))
|
||||
if not self.workload.uiauto_file:
|
||||
raise ResourceError('No UI automation Uiauto APK file found for workload {}.'.format(self.workload.name))
|
||||
self.workload.device_uiauto_file = self.device.path.join(self.device.working_directory, os.path.basename(self.workload.uiauto_file))
|
||||
|
||||
@@ -34,7 +34,7 @@ package=com.arm.wlauto.uiauto.applaunch
|
||||
|
||||
rm -f ../$package
|
||||
if [[ -f app/build/apk/$package.apk ]]; then
|
||||
cp app/build/apk/$package.apk ../$package.uiautoapk
|
||||
cp app/build/apk/$package.apk ../$package.apk
|
||||
else
|
||||
echo 'ERROR: UiAutomator apk could not be found!'
|
||||
exit 9
|
||||
|
||||
Reference in New Issue
Block a user