mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +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)
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user