[asterisk-commits] lmadsen: testsuite/asterisk/trunk r114 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 23 14:53:26 CDT 2010


Author: lmadsen
Date: Tue Mar 23 14:53:22 2010
New Revision: 114

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=114
Log:
Make failure when Asterisk isn't present more graceful (russell)

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=114&r1=113&r2=114
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Tue Mar 23 14:53:22 2010
@@ -243,7 +243,11 @@
             help="List tests instead of running them.")
     (options, args) = parser.parse_args(argv)
 
-    ast_version = AsteriskVersion()
+    try:
+        ast_version = AsteriskVersion()
+    except:
+        print "Failed to get Asterisk version.  Is Asterisk installed?"
+        return 1
 
     test_suite = TestSuite(ast_version)
 




More information about the asterisk-commits mailing list