[asterisk-commits] mnicholson: testsuite/asterisk/trunk r415 - /asterisk/trunk/asttest/lib/lua/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 18 14:44:38 CDT 2010


Author: mnicholson
Date: Fri Jun 18 14:44:35 2010
New Revision: 415

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=415
Log:
Print the output from all of our 'core waitfullybooted' commands when we fail to start asterisk.

Modified:
    asterisk/trunk/asttest/lib/lua/astlib.lua

Modified: asterisk/trunk/asttest/lib/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/lua/astlib.lua?view=diff&rev=415&r1=414&r2=415
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Fri Jun 18 14:44:35 2010
@@ -127,6 +127,7 @@
 	-- up with a one second delay in between each try.  We need to loop
 	-- like this in order to give asterisk time to start the CLI socket.
 	local booted
+	local output = ""
 	for _=1,5 do
 		local err
 		booted, err = self:cli("core waitfullybooted")
@@ -137,6 +138,9 @@
 				error("error waiting for asterisk to fully boot")
 			end
 		end
+
+		output = output .. booted
+
 		if booted:find("fully booted") then
 			break
 		end
@@ -154,6 +158,9 @@
 		elseif res then
 			print("asterisk exited with " .. res)
 		end
+
+		print("\noutput from all of our 'core waitfullybooted' attempts:")
+		print(output)
 
 		error("error starting asterisk")
 	end




More information about the asterisk-commits mailing list