mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
geekbench: fix output files listing
After running the benchmark, when collecting the output files the execution fails because the split('\n') call, used for creating a list of output files, returns an empty string as last element. The empty string makes the pull command fail because file '' doesn't exist on the target device. Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
This commit is contained in:
parent
c8a735e298
commit
d3dd9c849a
@ -122,8 +122,8 @@ class Geekbench(AndroidUiAutoBenchmark):
|
||||
|
||||
def update_result_3(self, context):
|
||||
outfile_glob = self.device.path.join(self.device.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')]
|
||||
on_device_output_files = [f.strip() for f in self.device.execute('ls {}'.format(outfile_glob),
|
||||
as_root=True).split('\n') if f]
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user