mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	workloads: Fixed versions to be backward compatible
In a recent commit workload versions were changed to match their APK versions. This commit adds the old versions to the allowed versions and automatically maps them onto the new values.
This commit is contained in:
		| @@ -48,7 +48,7 @@ class Antutu(AndroidUiAutoBenchmark): | ||||
|     activity = ".ABenchMarkStart" | ||||
|     summary_metrics = ['score', 'Overall_Score'] | ||||
|  | ||||
|     valid_versions = ['3.3.2', '4.0.3', '5.3', '6.0.1'] | ||||
|     valid_versions = ['3.3.2', '4.0.3', '5.3', '5.3.0', '6.0.1'] | ||||
|  | ||||
|     device_prefs_directory = '/data/data/com.antutu.ABenchMark/shared_prefs' | ||||
|     device_prefs_file = '/'.join([device_prefs_directory, 'com.antutu.ABenchMark_preferences.xml']) | ||||
| @@ -70,6 +70,8 @@ class Antutu(AndroidUiAutoBenchmark): | ||||
|  | ||||
|     def __init__(self, device, **kwargs):  # pylint: disable=W0613 | ||||
|         super(Antutu, self).__init__(device, **kwargs) | ||||
|         if self.version == '5.3.0': | ||||
|             self.version = '5.3' | ||||
|         self.run_timeout = 10 * 60 * self.times | ||||
|         self.uiauto_params['version'] = self.version | ||||
|         self.uiauto_params['times'] = self.times | ||||
|   | ||||
		Reference in New Issue
	
	Block a user