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

module/systrace: Handle empty lines for category listing

This commit is contained in:
Valentin Schneider 2018-10-19 18:28:29 +01:00 committed by Marc Bonnici
parent 78de479a43
commit bf1310c278

View File

@ -63,11 +63,7 @@ class SystraceCollector(TraceCollector):
[self.systrace_binary, '-l'], universal_newlines=True [self.systrace_binary, '-l'], universal_newlines=True
).splitlines() ).splitlines()
categories = [] return [line.split()[0] for line in lines if line]
for line in lines:
categories.append(line.split()[0])
return categories
def __init__(self, target, def __init__(self, target,
categories=None, categories=None,