Remove test submodule, move to tracetools_test
This commit is contained in:
parent
7c50f8e333
commit
15a209bbab
2 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
||||||
# Utils for tracetools testing
|
|
||||||
|
|
||||||
import subprocess
|
|
||||||
import babeltrace
|
|
||||||
|
|
||||||
def get_trace_event_names(trace_directory):
|
|
||||||
"""
|
|
||||||
Get a set of event names in a trace
|
|
||||||
:param trace_directory (str): the path to the main/top trace directory
|
|
||||||
:return: event names (set(str))
|
|
||||||
"""
|
|
||||||
tc = babeltrace.TraceCollection()
|
|
||||||
tc.add_traces_recursive(trace_directory, 'ctf')
|
|
||||||
|
|
||||||
event_names = set()
|
|
||||||
|
|
||||||
for event in tc.events:
|
|
||||||
event_names.add(event.name)
|
|
||||||
|
|
||||||
return event_names
|
|
Loading…
Add table
Add a link
Reference in a new issue