[asterisk-commits] mnicholson: testsuite/asterisk/trunk r818 - /asterisk/trunk/asttest/self-test...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 2 13:09:20 CDT 2010
Author: mnicholson
Date: Tue Nov 2 13:09:15 2010
New Revision: 818
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=818
Log:
Only start and stop 5 instances of asterisk instead of 10 for spawn self test.
Modified:
asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua
Modified: asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua?view=diff&rev=818&r1=817&r2=818
==============================================================================
--- asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua Tue Nov 2 13:09:15 2010
@@ -2,15 +2,16 @@
skip_if(not ast.exists(), "asterisk not found")
+count = 5
instances = {}
-for i=1,10 do
+for i=1,count do
print("starting asterisk instance " .. i)
local a = ast.new()
a:spawn()
table.insert(instances, a)
end
-for i=1,10 do
+for i=1,count do
print("killing asterisk instance " .. i)
local a = instances[i]
local res, err = proc.perror(a:term_or_kill())
More information about the asterisk-commits
mailing list