mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 14:44:09 +00:00 
			
		
		
		
	UiautoWorkloads: Updated to use apk files for uiautoamtion tests.
This commit is contained in:
		| @@ -17,6 +17,7 @@ | ||||
| import os | ||||
|  | ||||
| from wlauto import AndroidUiAutoBenchmark, Parameter | ||||
| from wlauto.common.android.resources import ApkFile | ||||
| import wlauto.common.android.resources | ||||
|  | ||||
|  | ||||
| @@ -65,8 +66,8 @@ class Videostreaming(AndroidUiAutoBenchmark): | ||||
|             self.uiauto_params['video_name'] = self.video_name | ||||
|         else: | ||||
|             self.uiauto_params['video_name'] = "abkk sathe {}".format(self.resolution) | ||||
|         self.apk_file = context.resolver.get(wlauto.common.android.resources.ApkFile(self)) | ||||
|         self.uiauto_file = context.resolver.get(wlauto.common.android.resources.uiautoApkFile(self)) | ||||
|         self.apk_file = context.resolver.get(ApkFile(self)) | ||||
|         self.uiauto_file = context.resolver.get(ApkFile(self, uiauto=True)) | ||||
|         self.device_uiauto_file = self.device.path.join(self.device.working_directory, | ||||
|                                                         os.path.basename(self.uiauto_file)) | ||||
|         if not self.uiauto_package: | ||||
|   | ||||
| @@ -33,7 +33,7 @@ fi | ||||
| package=com.arm.wlauto.uiauto.videostreaming | ||||
| 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