[asterisk-commits] mnicholson: testsuite/asterisk/trunk r392 - /asterisk/trunk/asttest/lib/lua/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 10 12:59:49 CDT 2010
Author: mnicholson
Date: Thu Jun 10 12:59:46 2010
New Revision: 392
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=392
Log:
Added a check to see if asterisk is still running if waiting for it to boot fails.
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=392&r1=391&r2=392
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Thu Jun 10 12:59:46 2010
@@ -146,6 +146,13 @@
print("error waiting for asterisk to fully boot: " .. booted)
print("\nfull log follows:\n")
self:dump_full_log()
+
+ print("checking to see if asterisk is still running")
+ local res, err = proc.perror(self:wait(1000))
+ if not res and err == "timeout" then
+ print("seems like asterisk is still running, but we cannot wait for it to be fully booted. That is odd.")
+ end
+
error("error starting asterisk")
end
end
More information about the asterisk-commits
mailing list