1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

Utils/Android: Fix missing space in check

Logcat entries are split on a ':' followed by a space so ensure this
is present in the line instead of just a ':'. Some devices have entires
without the trailing space causing an error.
This commit is contained in:
Marc Bonnici 2017-11-24 16:25:45 +00:00 committed by setrofim
parent d7da24eb52
commit bc5b43df30

View File

@ -44,7 +44,7 @@ class LogcatParser(object):
def parse_line(self, line):
line = line.strip()
if not line or line.startswith('-') or ':' not in line:
if not line or line.startswith('-') or ': ' not in line:
return None
metadata, message = line.split(': ', 1)