From: Jérémie Galarneau Date: Wed, 15 May 2013 19:21:13 +0000 (-0400) Subject: Tests: Remove temporary trace directory on bail-out X-Git-Tag: v2.2.0-rc3~61 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7f2841b709b74de17384aff2f11c48e449b74bf4;p=lttng-tools.git Tests: Remove temporary trace directory on bail-out Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.py index 5e00de494..4b38630c7 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):