diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-11-07 23:35:09 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-11-07 23:35:09 +0800 |
commit | 76f477ce32901f804a73bfc0616f932613d24902 (patch) | |
tree | 49eb92ed40d9b07e57c2ac83f154a30d23cf8079 | |
parent | 828ae3efd896793087d12fc307764efb90a6a58a (diff) |
add debug information for apk-automations
Change-Id: I17784caa5d35358337c6e9eedd01f80103ee63df
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | automated/android/apk-automation/common/__init__.py | 4 | ||||
-rwxr-xr-x | automated/android/apk-automation/geekbench3.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/automated/android/apk-automation/common/__init__.py b/automated/android/apk-automation/common/__init__.py index f0bd962..e1aaf57 100755 --- a/automated/android/apk-automation/common/__init__.py +++ b/automated/android/apk-automation/common/__init__.py @@ -217,6 +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) r = requests.get(apk_url, stream=True) if r.status_code == 200: with open(apk_path, 'wb') as f: @@ -225,6 +226,9 @@ class ApkTestRunner(object): else: self.logger.info('Failed to download file: %s' % apk_url) sys.exit(1) + else: + self.logger.info('APK file already exists: %s' % apk_name) + def install_apk(self, apk_name): apk_path = os.path.join(os.path.abspath(self.config['apk_dir']), apk_name) diff --git a/automated/android/apk-automation/geekbench3.py b/automated/android/apk-automation/geekbench3.py index 211107d..658c662 100755 --- a/automated/android/apk-automation/geekbench3.py +++ b/automated/android/apk-automation/geekbench3.py @@ -107,14 +107,14 @@ class ApkRunnerImpl(ApkTestRunner): self.report_result('geekbench-single-core', run_result) else: run_result = "pass" - self.report_result('geekbench-single-core', run_result, singlecore_result[singlecore_keyword]) + self.report_result('geekbench-single-core', run_result, singlecore_result[singlecore_keyword], 'points') if len(multicore_result) != 1: run_result = "fail" self.logger.error("Incorrect value for multi core test result! Please check the test result file!") self.report_result('geekbench-multi-core', run_result) else: run_result = "pass" - self.report_result('geekbench-multi-core', run_result, multicore_result[multicore_keyword]) + self.report_result('geekbench-multi-core', run_result, multicore_result[multicore_keyword], 'points') logfile.close() else: |