Tests: Remove temporary trace directory on bail-out
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 May 2013 19:21:13 +0000 (15:21 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 15 May 2013 19:32:10 +0000 (15:32 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/utils/test_utils.py

index 5e00de494a9cf0e24426d4adb7f1d4eabcc74a51..4b38630c7710652a0782b2f3f8831d95a564c0b5 100644 (file)
@@ -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):
This page took 0.027314 seconds and 4 git commands to generate.