1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-22 12:58:36 +00:00

pcmark: Check for description instead of text in installbenchmark

The test was hanging for a long time waiting for RUN text. Checking for
description first prevents that.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
This commit is contained in:
Qais Yousef 2022-01-31 14:28:45 +00:00 committed by Marc Bonnici
parent 69795628ed
commit 5a121983fc

View File

@ -126,14 +126,14 @@ public class UiAutomation extends BaseUiAutomation {
}
}
UiObject installed =
mDevice.findObject(new UiSelector().text("RUN")
mDevice.findObject(new UiSelector().description("RUN")
.className("android.view.View"));
installed.waitForExists(360000);
if (!installed.exists()){
UiObject installeddesc =
mDevice.findObject(new UiSelector().description("RUN")
UiObject installedtext =
mDevice.findObject(new UiSelector().text("RUN")
.className("android.view.View"));
installeddesc.waitForExists(1000);
installedtext.waitForExists(1000);
}
}