Remove test submodule, move to tracetools_test

This commit is contained in:
Christophe Bedard 2019-06-06 09:35:51 +02:00
parent 7c50f8e333
commit 15a209bbab
2 changed files with 0 additions and 20 deletions

View file

@ -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