[asterisk-commits] pabelanger: testsuite/asterisk/trunk r2179 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 12 11:30:04 CDT 2011


Author: pabelanger
Date: Mon Sep 12 11:30:00 2011
New Revision: 2179

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2179
Log:
Add -v / --version command line option

Rather then having the testsuite figure out the version of Asterisk you want
to use, now you can specify the version. For example to use Asterisk 1.8.6:

  $ ./runtests.py -v 1.8.6

Tested by: acidfoo (IRC #asterisk-testing)

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=2179&r1=2178&r2=2179
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Mon Sep 12 11:30:00 2011
@@ -416,6 +416,9 @@
     parser.add_option("-t", "--test",
             dest="test",
             help="Run a single specified test instead of all tests.")
+    parser.add_option("-v", "--version",
+            dest="version", default=None,
+            help="Specify the version of Asterisk rather then detecting it.")
     (options, args) = parser.parse_args(argv)
 
     # Check to see if this has been executed within a sub directory of an
@@ -431,7 +434,7 @@
               "***************\n"
         return 1
 
-    ast_version = AsteriskVersion()
+    ast_version = AsteriskVersion(options.version)
 
     #remove any trailing '/' from a test specified with the -t option
     if options.test and options.test[-1] == '/':




More information about the asterisk-commits mailing list