Skip to content

Commit 3e3b4e0

Browse files
committed
Adding APK Version capture
1
1 parent 7adc032 commit 3e3b4e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wa/workloads/antutu/__init__.py

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

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

2122

2223
class Antutu(ApkUiautoWorkload):
@@ -173,6 +174,10 @@ def extract_scores(self, context, regex_version):
173174
overall_result = float(cpu_result + gpu_result + ux_result + mem_result)
174175
context.add_metric('Overall Score', overall_result, lower_is_better=False)
175176

177+
# Get the APK version
178+
version_name = self.apk.apk_info.version_name
179+
context.add_metadata("apk_version", version_name)
180+
176181
def update_output(self, context):
177182
super(Antutu, self).update_output(context)
178183
if self.version.startswith('10'):

0 commit comments

Comments
 (0)