[asterisk-commits] mnicholson: testsuite/asterisk/trunk r125 - /asterisk/trunk/asttest/lua/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 24 14:39:42 CDT 2010
Author: mnicholson
Date: Wed Mar 24 14:39:38 2010
New Revision: 125
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=125
Log:
Added an ast.exists() function that will check if asterisk exists.
Modified:
asterisk/trunk/asttest/lua/astlib.lua
Modified: asterisk/trunk/asttest/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lua/astlib.lua?view=diff&rev=125&r1=124&r2=125
==============================================================================
--- asterisk/trunk/asttest/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lua/astlib.lua Wed Mar 24 14:39:38 2010
@@ -17,6 +17,10 @@
--
module(..., package.seeall)
+
+function exists()
+ return select(1, proc.exists(path .. "/usr/sbin/asterisk"))
+end
function new()
return asterisk:new()
More information about the asterisk-commits
mailing list