[asterisk-commits] russell: testsuite/asterisk/trunk r95 - /asterisk/trunk/run-tests.py
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 17 21:54:15 CDT 2010
Author: russell
Date: Wed Mar 17 21:54:11 2010
New Revision: 95
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=95
Log:
Implement handling of the minversion and maxversion test properties
Modified:
asterisk/trunk/run-tests.py
Modified: asterisk/trunk/run-tests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/run-tests.py?view=diff&rev=95&r1=94&r2=95
==============================================================================
--- asterisk/trunk/run-tests.py (original)
+++ asterisk/trunk/run-tests.py Wed Mar 17 21:54:11 2010
@@ -101,6 +101,19 @@
Dependency(d["app"])
for d in self.config["properties"]["dependencies"]
]
+
+ self.minversion_check = True
+ if ast_version < self.minversion:
+ self.can_run = False
+ self.minversion_check = False
+ return
+
+ self.maxversion_check = True
+ if self.maxversion is not None and ast_version > self.maxversion:
+ self.can_run = False
+ self.maxversion_check = False
+ return
+
for d in self.deps:
if d.found is False:
self.can_run = False
@@ -138,9 +151,11 @@
for t in self.tests:
s += "%.3d) %s\n" % (i, t.test_name)
s += " --> Summary: %s\n" % t.summary
- s += " --> Minimum Version: %s\n" % str(t.minversion)
+ s += " --> Minimum Version: %s (%s)\n" % \
+ (str(t.minversion), str(t.minversion_check))
if t.maxversion is not None:
- s += " --> Maximum Version: %s\n" % str(t.maxversion)
+ s += " --> Maximum Version: %s (%s) \n" % \
+ (str(t.maxversion), str(t.maxversion_check))
i += 1
return s
More information about the asterisk-commits
mailing list