[asterisk-commits] qwell: testsuite/asterisk/trunk r1757 - /asterisk/trunk/runtests.py
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 20 16:48:02 CDT 2011
Author: qwell
Date: Wed Jul 20 16:47:59 2011
New Revision: 1757
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1757
Log:
Don't load config files for every test, if we specified one.
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=1757&r1=1756&r2=1757
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Wed Jul 20 16:47:59 2011
@@ -285,6 +285,10 @@
for val in t:
path = "%s/%s" % (test_dir, t[val])
if val == "test":
+ # If we specified a test, there's no point loading the others.
+ if self.options.test and path != self.options.test:
+ continue
+
tests.append(TestConfig(path, ast_version, self.options))
elif val == "dir":
tests += self._parse_test_yaml(path, ast_version)
@@ -295,9 +299,6 @@
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)" % \
@@ -319,8 +320,6 @@
test_suite_dir = os.getcwd()
for t in self.tests:
- if self.options.test and t.test_name != self.options.test:
- continue
if t.can_run is False:
if t.skip is not None:
print "--> %s ... skipped '%s'" % (t.test_name, t.skip)
More information about the asterisk-commits
mailing list