1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

geekbench: Use root to pull results XML file

This is required, I don't know why this was working before. Maybe only tested
after people had run 'adb root'?
This commit is contained in:
Brendan Jackman 2017-10-25 19:15:46 +01:00
parent eb0f53c8f6
commit a08d6262ba

View File

@ -153,7 +153,7 @@ class Geekbench(ApkUiautoWorkload):
as_root=True).split('\n') if f]
for i, on_target_output_file in enumerate(on_target_output_files):
host_temp_file = tempfile.mktemp()
self.target.pull(on_target_output_file, host_temp_file)
self.target.pull(on_target_output_file, host_temp_file, as_root=True)
host_output_file = os.path.join(context.output_directory, os.path.basename(on_target_output_file))
with open(host_temp_file) as fh:
data = json.load(fh)
@ -175,7 +175,7 @@ class Geekbench(ApkUiautoWorkload):
as_root=True).split('\n') if f]
for i, on_target_output_file in enumerate(on_target_output_files):
host_temp_file = tempfile.mktemp()
self.target.pull(on_target_output_file, host_temp_file)
self.target.pull(on_target_output_file, host_temp_file, as_root=True)
host_output_file = os.path.join(context.output_directory, os.path.basename(on_target_output_file))
with open(host_temp_file) as fh:
data = json.load(fh)