[lttng-dev] [PATCH lttng-tools] Tests: Remove temporary trace directory on bail-out

David Goulet dgoulet at efficios.com
Wed May 15 15:32:22 EDT 2013


Merged!

Jérémie Galarneau:
> Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
> ---
>  tests/utils/test_utils.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.py
> index 5e00de4..4b38630 100644
> --- a/tests/utils/test_utils.py
> +++ b/tests/utils/test_utils.py
> @@ -48,8 +48,8 @@ def bail(diag, session_info = None):
>      if session_info is not None:
>          stop_session(session_info, True)
>  
> -        if os.path.exists(session_info.trace_path):
> -            shutil.rmtree(session_info.trace_path)
> +        if os.path.exists(session_info.tmp_directory):
> +            shutil.rmtree(session_info.tmp_directory)
>      exit(-1)
>  
>  def print_test_result(result, number, description):



More information about the lttng-dev mailing list