From 7f2841b709b74de17384aff2f11c48e449b74bf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 15 May 2013 15:21:13 -0400 Subject: [PATCH] Tests: Remove temporary trace directory on bail-out MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- 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 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): -- 2.34.1