+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2019 EfficiOS Inc.
+#
+
import bt2
class TheIteratorOfConfusion(bt2._UserMessageIterator):
- def __init__(self, port):
+ def __init__(self, config, port):
self._at = 0
test_name = port.user_data[0]
TEST_CASES[test_name].create_msgs(self, port.user_data[1:])
class TheSourceOfConfusion(
bt2._UserSourceComponent, message_iterator_class=TheIteratorOfConfusion
):
- def __init__(self, params, obj):
- tc = self._create_trace_class()
-
+ def __init__(self, config, params, obj):
test_name = str(params['test-name'])
TEST_CASES[test_name].source_setup(self, test_name)
src._add_output_port('out2', (test_name, cc2))
def create_msgs(msg_iter, params):
- cc, = params
+ (cc,) = params
sb_msg = msg_iter._create_message_iterator_inactivity_message(cc, 0)
msg_iter._msgs = [sb_msg]