1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-04 11:02:34 +01:00

Fixed WA extensions for AndroidManager

Changed method calls to devlib naming
This commit is contained in:
Sebastian Goscik
2016-02-16 16:16:41 +00:00
parent a3962b6323
commit 0b1b9d304c
6 changed files with 13 additions and 18 deletions

View File

@@ -121,12 +121,13 @@ class Geekbench(AndroidUiAutoBenchmark):
score_calculator.update_results(context)
def update_result_3(self, context):
outfile_glob = self.device.path.join(self.device.package_data_directory, self.package, 'files', '*gb3')
outfile_glob = self.device.path.join(context.device_manager.package_data_directory, self.package, 'files', '*gb3')
on_device_output_files = [f.strip() for f in
self.device.execute('ls {}'.format(outfile_glob), as_root=True).split('\n')]
self.device.execute('ls {}'.format(outfile_glob), as_root=True).split('\n')
if f.strip()]
for i, on_device_output_file in enumerate(on_device_output_files):
host_temp_file = tempfile.mktemp()
self.device.pull_file(on_device_output_file, host_temp_file)
self.device.pull(on_device_output_file, host_temp_file)
host_output_file = os.path.join(context.output_directory, os.path.basename(on_device_output_file))
with open(host_temp_file) as fh:
data = json.load(fh)