[svn-commits] mjordan: testsuite/asterisk/trunk r3278 - /asterisk/trunk/runtests.py
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jun 22 08:16:36 CDT 2012
Author: mjordan
Date: Fri Jun 22 08:16:32 2012
New Revision: 3278
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3278
Log:
Fix runtests.py to properly display feature attributes of tests
Karl Sackett noticed that when running ./runtests.py with the -l option,
a run-time exception was thrown when it attempted to access the 'skip' property.
This property was removed when the features attribute was added in r3272.
Feature attributes are now properly shown when the tests are listed.
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=3278&r1=3277&r2=3278
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Fri Jun 22 08:16:32 2012
@@ -220,6 +220,11 @@
if t.test_config.maxversion is not None:
print " --> Maximum Version: %s (%s)" % \
(str(t.test_config.maxversion), str(t.test_config.maxversion_check))
+ if t.test_config.features:
+ print " --> Features:"
+ for feature_name in t.test_config.features:
+ print " --> %s: -- Met: %s" % \
+ (feature_name, str(t.test_config.feature_check[feature_name]))
if t.test_config.tags:
print " --> Tags: %s" % str(t.test_config.tags)
for d in t.test_config.deps:
@@ -230,8 +235,6 @@
else:
print " --> Dependency: %s -- Met: %s" % (d.name,
str(d.met))
- for s in t.test_config.skips:
- print " --> Skip: %s -- Met: %s" % (s.name, str(s.met))
i += 1
More information about the svn-commits
mailing list