Tests: Remove temporary trace directory on bail-out
A message that is not in the archive (sent off-list or not yet received): [email protected]
Merged!
Jérémie Galarneau:
Quoted 10 lines
Signed-off-by Jérémie Galarneau <[email protected]>--- tests/utils/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/utils/test_utils.py +0
-0
tests/utils/test_utils.py def bail(diag, session_info = None): · line 55
Quoted 10 lines
tests/utils/test_utils.py +2
-2@@ -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):
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev