1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

Merge pull request #103 from marcbonnici/issue_102

Target: Fixes __setup_list_directory issue on production devices.
This commit is contained in:
setrofim 2017-03-30 08:06:41 +01:00 committed by GitHub
commit 1061c94951

View File

@ -894,7 +894,7 @@ class AndroidTarget(Target):
# so we try the new version, and if it fails we use the old version.
self.ls_command = 'ls -1'
try:
self.execute('ls -1 /', as_root=False)
self.execute('ls -1 {}'.format(self.working_directory), as_root=False)
except TargetError:
self.ls_command = 'ls'