1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

workloads: Updating geekbench to support v4.3.1

v4.3.1 has made a minor change to the run cpu benchmark element.
Refactoring to support both the new and previous elements.
This commit is contained in:
scott 2018-11-15 15:24:12 +00:00 committed by Marc Bonnici
parent ea1d4e9071
commit 3bd8f033d5
3 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,10 @@ class Geekbench(ApkUiautoWorkload):
"""
summary_metrics = ['score', 'multicore_score']
versions = {
'4.3.1': {
'package': 'com.primatelabs.geekbench',
'activity': '.HomeActivity',
},
'4.2.0': {
'package': 'com.primatelabs.geekbench',
'activity': '.HomeActivity',

View File

@ -126,7 +126,7 @@ public class UiAutomation extends BaseUiAutomation {
public void runBenchmarks() throws Exception {
UiObject runButton =
mDevice.findObject(new UiSelector().textContains("Run Benchmarks")
mDevice.findObject(new UiSelector().textContains("Run Benchmark")
.className("android.widget.Button"));
if (!runButton.waitForExists(WAIT_TIMEOUT_5SEC)) {
throw new UiObjectNotFoundException("Could not find Run button");