[asterisk-commits] qwell: testsuite/asterisk/trunk r1752 - /asterisk/trunk/runtests.py
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 20 15:51:32 CDT 2011
Author: qwell
Date: Wed Jul 20 15:51:28 2011
New Revision: 1752
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1752
Log:
Allow using -l with -t <testname>. Useful for listing a single test.
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=1752&r1=1751&r2=1752
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Wed Jul 20 15:51:28 2011
@@ -295,6 +295,9 @@
print "Configured tests:"
i = 1
for t in self.tests:
+ if self.options.test and t.test_name != self.options.test:
+ continue
+
print "%.3d) %s" % (i, t.test_name)
print " --> Summary: %s" % t.summary
print " --> Minimum Version: %s (%s)" % \
@@ -315,10 +318,6 @@
def run(self):
test_suite_dir = os.getcwd()
- # remove any trailing '/' from a test specified with the -t option
- if self.options.test and self.options.test[-1] == '/':
- self.options.test = self.options.test[0:-1]
-
for t in self.tests:
if self.options.test and t.test_name != self.options.test:
continue
@@ -429,6 +428,10 @@
ast_version = AsteriskVersion()
+ #remove any trailing '/' from a test specified with the -t option
+ if options.test and options.test[-1] == '/':
+ options.test = options.test[0:-1]
+
test_suite = TestSuite(ast_version, options)
if options.list_tests is True:
More information about the asterisk-commits
mailing list