X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fdata%2Fplugins%2Fflt.lttng-utils.debug-info%2Fbt_plugin_test_debug_info.py;h=efbdb8e3dff6112f41cdc398c2b79e3ea6fd7a41;hb=5995b304e5601bf9b97ffa661b21874bec6c0e3a;hp=72532b48e928f70bc54edff3682de4c844aa1279;hpb=52ea95936a4a5d6f72acaaf97de5d8a428d8d9cc;p=babeltrace.git diff --git a/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py b/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py index 72532b48..efbdb8e3 100644 --- a/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py +++ b/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py @@ -3,9 +3,10 @@ # Copyright (C) 2019 EfficiOS Inc. # -import bt2 import math +import bt2 + bt2.register_plugin(__name__, "test_debug_info") @@ -29,20 +30,20 @@ class CompleteIter(bt2._UserMessageIterator): ev.event.payload_field["uint32"] = 121 ev.event.payload_field["uint61"] = 299792458 ev.event.payload_field["uint5_oct"] = 29 - ev.event.payload_field["struct"]['str'] = "Rotisserie St-Hubert" - ev.event.payload_field["struct"]['option_real'] = math.pi + ev.event.payload_field["struct"]["str"] = "Rotisserie St-Hubert" + ev.event.payload_field["struct"]["option_real"] = math.pi ev.event.payload_field["string"] = "🎉" ev.event.payload_field["dyn_array"] = [1.2, 2 / 3, 42.3, math.pi] ev.event.payload_field["dyn_array_len"] = 4 ev.event.payload_field["dyn_array_with_len"] = [5.2, 5 / 3, 42.5, math.pi * 12] - ev.event.payload_field["sta_array"] = ['🕰', '🦴', ' 🎍'] + ev.event.payload_field["sta_array"] = ["🕰", "🦴", " 🎍"] ev.event.payload_field["option_none"] ev.event.payload_field["option_some"] = "NORMANDIN" ev.event.payload_field["option_bool_selector"] = True ev.event.payload_field["option_bool"] = "Mike's" ev.event.payload_field["option_int_selector"] = 1 ev.event.payload_field["option_int"] = "Barbies resto bar grill" - ev.event.payload_field['variant'].selected_option_index = 0 + ev.event.payload_field["variant"].selected_option_index = 0 ev.event.payload_field["variant"] = "Couche-Tard" self._msgs = [ @@ -72,14 +73,14 @@ class CompleteSrc(bt2._UserSourceComponent, message_iterator_class=CompleteIter) option_some_fc = tc.create_string_field_class() variant_fc = tc.create_variant_field_class() variant_fc.append_option( - name='var_str', field_class=tc.create_string_field_class() + name="var_str", field_class=tc.create_string_field_class() ) option_none_fc = tc.create_double_precision_real_field_class() struct_fc = tc.create_structure_field_class() struct_option_fc = tc.create_double_precision_real_field_class() - struct_fc.append_member('str', tc.create_string_field_class()) + struct_fc.append_member("str", tc.create_string_field_class()) struct_fc.append_member( - 'option_real', + "option_real", tc.create_option_without_selector_field_class(struct_option_fc), ) option_bool_selector_fc = tc.create_bool_field_class()