summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-11-08 00:13:45 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-11-08 00:13:45 +0800
commit9c509b311fe3570dc1611455309a1c8c42ef7212 (patch)
tree1c6b2d736eca1cba191ed765f7bc5c4dd093c32b
parent76f477ce32901f804a73bfc0616f932613d24902 (diff)
download glbenchmark25 apk file as well
Change-Id: I0f7573d75fcb499ddf3bb95c16502a2d5b47c361 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/android/apk-automation/common/__init__.py2
-rwxr-xr-xautomated/android/apk-automation/glbenchmark25.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/automated/android/apk-automation/common/__init__.py b/automated/android/apk-automation/common/__init__.py
index e1aaf57..980e5a8 100755
--- a/automated/android/apk-automation/common/__init__.py
+++ b/automated/android/apk-automation/common/__init__.py
@@ -217,7 +217,7 @@ class ApkTestRunner(object):
sys.exit(1)
else:
apk_url = urlparse.urljoin(self.config['base_url'], apk_name)
- self.logger.info('Start downloading faile: %s' % apk_url)
+ self.logger.info('Start downloading file: %s' % apk_url)
r = requests.get(apk_url, stream=True)
if r.status_code == 200:
with open(apk_path, 'wb') as f:
diff --git a/automated/android/apk-automation/glbenchmark25.py b/automated/android/apk-automation/glbenchmark25.py
index 657cd01..6b7299e 100755
--- a/automated/android/apk-automation/glbenchmark25.py
+++ b/automated/android/apk-automation/glbenchmark25.py
@@ -12,7 +12,11 @@ class ApkRunnerImpl(ApkTestRunner):
super(ApkRunnerImpl, self).__init__(self.config)
def setUp(self):
+ # set to peformance governor policay
+ self.set_performance_governor()
+ # download apk related files
self.download_apk('main.1.com.glbenchmark.glbenchmark25.obb')
+ self.download_apk(self.config['apk_file_name'])
self.uninstall_apk(self.config['apk_package'])
self.install_apk(self.config['apk_file_name'])