[asterisk-commits] mjordan: testsuite/asterisk/trunk r4292 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Oct 27 17:10:04 CDT 2013


Author: mjordan
Date: Sun Oct 27 17:10:03 2013
New Revision: 4292

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4292
Log:
Archive the mmlog if it exists

If Asterisk is compiled with MALLOC_DEBUG, it will produce an mmlog file
containing errors found while manipulating memory. This patch updates
runtests.py to archive it in the event of a test failure.

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=4292&r1=4291&r2=4292
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Sun Oct 27 17:10:03 2013
@@ -136,8 +136,13 @@
                 """ Only archive the logs if we havent archived it for this test run yet """
                 if not os.path.exists(dest_dir):
                     try:
-                        hardlink_or_copy(ast_dir + "/messages.txt", dest_dir + "/messages.txt")
-                        hardlink_or_copy(ast_dir + "/full.txt", dest_dir + "/full.txt")
+                        hardlink_or_copy(ast_dir + "/messages.txt",
+                            dest_dir + "/messages.txt")
+                        hardlink_or_copy(ast_dir + "/full.txt",
+                            dest_dir + "/full.txt")
+                        if os.path.exists(ast_dir + "/mmlog"):
+                            hardlink_or_copy(ast_dir + "/mmlog",
+                                dest_dir + "/mmlog")
                     except Exception, e:
                         print "Exception occurred while archiving logs from %s to %s: %s" % (
                             ast_dir, dest_dir, e




More information about the asterisk-commits mailing list