[asterisk-commits] mnicholson: testsuite/asterisk/trunk r705 - /asterisk/trunk/tests/cdr/blind-t...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 5 08:42:49 CDT 2010


Author: mnicholson
Date: Thu Aug  5 08:42:45 2010
New Revision: 705

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=705
Log:
Dump the asterisk full log when we encounter an error.

Modified:
    asterisk/trunk/tests/cdr/blind-transfer-accountcode/test.lua

Modified: asterisk/trunk/tests/cdr/blind-transfer-accountcode/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/blind-transfer-accountcode/test.lua?view=diff&rev=705&r1=704&r2=705
==============================================================================
--- asterisk/trunk/tests/cdr/blind-transfer-accountcode/test.lua (original)
+++ asterisk/trunk/tests/cdr/blind-transfer-accountcode/test.lua Thu Aug  5 08:42:45 2010
@@ -1,7 +1,8 @@
 have_error = false
 
-function check_error()
+function check_error(a)
 	if have_error then
+		a:dump_full_log()
 		error()
 	end
 end
@@ -91,7 +92,7 @@
 	sipp_check_error(t1, "sipp/wait-for-call.xml")
 
 	proc.perror(a:term_or_kill())
-	check_error()
+	check_error(a)
 
 	-- examine the CDR records generated to make sure account code is present
 	check_cdr(a, 2, accountcode)




More information about the asterisk-commits mailing list