mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
read_tree_values: more robust parsing.
Skip entries not containing a ":".
This commit is contained in:
parent
98e19ae048
commit
7e073c1fce
@ -620,7 +620,7 @@ class Target(object):
|
||||
check_exit_code=check_exit_code)
|
||||
result = {}
|
||||
for entry in output.strip().split('\n'):
|
||||
if not entry.strip():
|
||||
if ':' not in entry:
|
||||
continue
|
||||
path, value = entry.strip().split(':', 1)
|
||||
result[path] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user