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

AndroidDevice fix: create dympsys file relative to working directory on target.

Commit 95f17702d7 redirected output of
"dumpsys window" to a file (needed for Gem5 support). However, the file
was created in $PWD, which breaks on production devices, as that
location is not writable. This moves the file under the working
directory on the device.
This commit is contained in:
Sergei Trofimov 2015-11-16 13:09:28 +00:00
parent 9c8c81cc25
commit 2510329cdf

View File

@ -502,10 +502,11 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
self._update_build_properties(buildprop_file, props)
context.add_run_artifact('build_properties', buildprop_file, 'export')
dumpsys_window_file = os.path.join(context.host_working_directory, 'window.dumpsys')
self.execute('{} > {}'.format('dumpsys window', 'window.dumpsys'))
self.pull_file('window.dumpsys', dumpsys_window_file)
context.add_run_artifact('dumpsys_window', dumpsys_window_file, 'meta')
dumpsys_target_file = self.device.path.join(self.device.working_directory, 'window.dumpsys')
dumpsys_host_file = os.path.join(context.host_working_directory, 'window.dumpsys')
self.execute('{} > {}'.format('dumpsys window', dumpsys_target_file))
self.pull_file(dumpsys_target_file, dumpsys_host_file)
context.add_run_artifact('dumpsys_window', dumpsys_host_file, 'meta')
return props
def getprop(self, prop=None):