diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2018-11-28 22:03:22 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2018-11-30 09:06:28 +0800 |
commit | b83e0fee340e4e3748c155565697b515f924aa3f (patch) | |
tree | 09c7be36e13e6fae8f68ea507bd35cfaedb1e855 | |
parent | 9665593ed77d21bfcf1146b073257fb23f0792ef (diff) |
glbenchmark25.py: workaround to run with Pie build
Change-Id: I702aad1b2e20b9ec099cf9fee5698a01e96fa539
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | automated/android/apk-automation/glbenchmark25.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/automated/android/apk-automation/glbenchmark25.py b/automated/android/apk-automation/glbenchmark25.py index e5bb116..9853a84 100755 --- a/automated/android/apk-automation/glbenchmark25.py +++ b/automated/android/apk-automation/glbenchmark25.py @@ -41,6 +41,7 @@ class ApkRunnerImpl(ApkTestRunner): self.dump_always() select_all_btn = self.vc.findViewWithText("All") display_tests_menu = self.vc.findViewWithText("Performance Tests") + warn_msg = self.vc.findViewWithText(u'This app was built for an older version of Android and may not work properly. Try checking for updates, or contact the developer.') if select_all_btn: select_all_btn.touch() self.logger.info("All selected!") @@ -48,6 +49,10 @@ class ApkRunnerImpl(ApkTestRunner): elif display_tests_menu: display_tests_menu.touch() self.logger.info("Display all tests to select all") + elif warn_msg: + self.logger.info("Older version warning popped up") + warning_ok_btn = self.vc.findViewWithTextOrRaise(u'OK') + warning_ok_btn.touch() else: # continue pass |