mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
AndroidDevice fix: create dympsys file relative to working directory on target.
Commit 95f17702d74d06d8f61bc710c53472d25d2f92ed 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:
parent
9c8c81cc25
commit
2510329cdf
@ -502,10 +502,11 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
|||||||
self._update_build_properties(buildprop_file, props)
|
self._update_build_properties(buildprop_file, props)
|
||||||
context.add_run_artifact('build_properties', buildprop_file, 'export')
|
context.add_run_artifact('build_properties', buildprop_file, 'export')
|
||||||
|
|
||||||
dumpsys_window_file = os.path.join(context.host_working_directory, 'window.dumpsys')
|
dumpsys_target_file = self.device.path.join(self.device.working_directory, 'window.dumpsys')
|
||||||
self.execute('{} > {}'.format('dumpsys window', 'window.dumpsys'))
|
dumpsys_host_file = os.path.join(context.host_working_directory, 'window.dumpsys')
|
||||||
self.pull_file('window.dumpsys', dumpsys_window_file)
|
self.execute('{} > {}'.format('dumpsys window', dumpsys_target_file))
|
||||||
context.add_run_artifact('dumpsys_window', dumpsys_window_file, 'meta')
|
self.pull_file(dumpsys_target_file, dumpsys_host_file)
|
||||||
|
context.add_run_artifact('dumpsys_window', dumpsys_host_file, 'meta')
|
||||||
return props
|
return props
|
||||||
|
|
||||||
def getprop(self, prop=None):
|
def getprop(self, prop=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user