Skip to content

Commit 966840c

Browse files
committed
Adding APK Version capture
1 parent 7adc032 commit 966840c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wa/workloads/antutu/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import time
1818

1919
from wa import ApkUiautoWorkload, ApkWorkload, WorkloadError, Parameter, ApkFile, File
20-
20+
from wa.utils.android import ApkInfo
2121

2222
class Antutu(ApkUiautoWorkload):
2323

@@ -173,6 +173,10 @@ def extract_scores(self, context, regex_version):
173173
overall_result = float(cpu_result + gpu_result + ux_result + mem_result)
174174
context.add_metric('Overall Score', overall_result, lower_is_better=False)
175175

176+
# Get the APK version
177+
version_name = self.apk.apk_info.version_name
178+
context.add_metadata("apk_version", version_name)
179+
176180
def update_output(self, context):
177181
super(Antutu, self).update_output(context)
178182
if self.version.startswith('10'):

0 commit comments

Comments
 (0)