X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Flttngtest%2Fenvironment.py;h=0efb2b5f526ea5edba9ea5199e87772645d3db4d;hp=282e95643c33a6ece9cd2f815bc1d28f5f6f69f0;hb=873d3601e0c4a5ca128799f8b6514a1816b735e1;hpb=99afe3e2063edf476d5c46c261cf02e504d3a3c5 diff --git a/tests/utils/lttngtest/environment.py b/tests/utils/lttngtest/environment.py index 282e95643..0efb2b5f5 100644 --- a/tests/utils/lttngtest/environment.py +++ b/tests/utils/lttngtest/environment.py @@ -192,8 +192,9 @@ class TraceTestApplication: Create an application to trace. """ - def __init__(self, binary_path: pathlib.Path, environment: "Environment"): - self._environment: Environment = environment + def __init__(self, binary_path, environment): + # type: (pathlib.Path, Environment) + self._environment = environment # type: Environment self._has_returned = False test_app_env = os.environ.copy() @@ -208,7 +209,8 @@ class TraceTestApplication: test_app_args, env=test_app_env ) - def wait_for_exit(self) -> None: + def wait_for_exit(self): + # type: () -> None if self._process.wait() != 0: raise RuntimeError( "Test application has exit with return code `{return_code}`".format( @@ -412,9 +414,8 @@ class _Environment(logger._Logger): self, ) - def launch_trace_test_constructor_application( - self - ) -> TraceTestApplication: + def launch_trace_test_constructor_application(self): + # type () -> TraceTestApplication """ Launch an application that will trace from within constructors. """