+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2019 EfficiOS Inc.
+#
+
import bt2
import os
class TestIter(bt2._UserMessageIterator):
- def __init__(self, output_port):
+ def __init__(self, config, output_port):
inputs = output_port.user_data['inputs']
sc = output_port.user_data['sc']
tc = sc.trace_class
files are not grouped.
"""
- def __init__(self, params, obj):
+ def __init__(self, config, params, obj):
super().__init__(params)
@staticmethod
directory "some-dir" won't be found by TestSourceExt, because we won't
recurse in "some-dir"."""
- def __init__(self, params, obj):
+ def __init__(self, config, params, obj):
super().__init__(params)
@staticmethod
class TestSourceABCDE(Base, bt2._UserSourceComponent, message_iterator_class=TestIter):
"""A source that recognizes the arbitrary string input "ABCDE"."""
- def __init__(self, params, obj):
+ def __init__(self, config, params, obj):
super().__init__(params)
@staticmethod