X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fust-constructor%2Ftest_ust_constructor.py;fp=tests%2Fregression%2Fust%2Fust-constructor%2Ftest_ust_constructor.py;h=ea6a125d08b8d4d94045ffe4dc23c7bb44071dd5;hp=5e6523c765bb5cc3a31bc15ae04fea5c591f0b5a;hb=d2455527078ecb1963372d67323a32e9be02cda2;hpb=9caec246ae3fabcadd56c334e9b8755ccf8c46c0 diff --git a/tests/regression/ust/ust-constructor/test_ust_constructor.py b/tests/regression/ust/ust-constructor/test_ust_constructor.py index 5e6523c76..ea6a125d0 100755 --- a/tests/regression/ust/ust-constructor/test_ust_constructor.py +++ b/tests/regression/ust/ust-constructor/test_ust_constructor.py @@ -163,9 +163,8 @@ expected_events = [ ] -def capture_trace( - tap: lttngtest.TapGenerator, test_env: lttngtest._Environment -) -> lttngtest.LocalSessionOutputLocation: +def capture_trace(tap, test_env): + # type: (lttngtest.TapGenerator, lttngtest._Environment) -> lttngtest.LocalSessionOutputLocation tap.diagnostic( "Capture trace from application with instrumented C/C++ constructors/destructors" ) @@ -197,7 +196,8 @@ def capture_trace( return session_output_location -def validate_trace(trace_location: pathlib.Path, tap: lttngtest.TapGenerator) -> bool: +def validate_trace(trace_location, tap) -> bool: + # type: (pathlib.Path, lttngtest.TapGenerator) -> bool success = True unknown_event_count = 0