Skip to contentSkip to conversation

Tests: Remove temporary trace directory on bail-out

PATCH David Goulet 1 participant 1 message May 15, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged!

Jérémie Galarneau:

Quoted 10 lines
---
 tests/utils/test_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/utils/test_utils.py +0 -0
index 5e00de4..4b38630 100644

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