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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 1 10:13:56 CDT 2010


Author: mnicholson
Date: Thu Jul  1 10:13:52 2010
New Revision: 449

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=449
Log:
Put the waitfullybooted code in it's own function

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=449&r1=448&r2=449
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Thu Jul  1 10:13:52 2010
@@ -114,13 +114,7 @@
 	return p.stdout:read("*a")
 end
 
-function asterisk:spawn()
-	self:clean_work_area()
-	self:create_work_area()
-	self:generate_essential_configs()
-	self:write_configs()
-	self:_spawn()
-
+function asterisk:_waitfullybooted()
 	-- wait for asterisk to be fully booted.  We do this by reading the
 	-- output of the 'core waitfullybooted' command and looking for the
 	-- string 'fully booted'.  We will try 10 times before completely
@@ -170,6 +164,15 @@
 	end
 end
 
+function asterisk:spawn()
+	self:clean_work_area()
+	self:create_work_area()
+	self:generate_essential_configs()
+	self:write_configs()
+	self:_spawn()
+	self:_waitfullybooted()
+end
+
 function asterisk:spawn_and_wait()
 	self:spawn()
 	return self:wait()




More information about the svn-commits mailing list