mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
module/systrace: Handle empty lines for category listing
This commit is contained in:
parent
78de479a43
commit
bf1310c278
@ -63,11 +63,7 @@ class SystraceCollector(TraceCollector):
|
||||
[self.systrace_binary, '-l'], universal_newlines=True
|
||||
).splitlines()
|
||||
|
||||
categories = []
|
||||
for line in lines:
|
||||
categories.append(line.split()[0])
|
||||
|
||||
return categories
|
||||
return [line.split()[0] for line in lines if line]
|
||||
|
||||
def __init__(self, target,
|
||||
categories=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user