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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 18 16:07:08 CDT 2010


Author: pabelanger
Date: Tue May 18 16:07:04 2010
New Revision: 296

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=296
Log:
Additional logging for testsuite when skipping a test

(closes issue #17328)
Reported by: pabelanger
Patches:
      runtests.CLI.patch uploaded by pabelanger (license 224)
Tested by: russell

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=296&r1=295&r2=296
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Tue May 18 16:07:04 2010
@@ -212,7 +212,12 @@
 
         for t in self.tests:
             if t.can_run is False:
-                print "--> Can not run test '%s'" % t.test_name
+                print "--> Cannot run test '%s'" % t.test_name
+                print "--- --> Minimum Version: %s (%s)" % \
+                    (str(t.minversion), str(t.minversion_check))
+                if t.maxversion is not None:
+                    print "--- --> Maximum Version: %s (%s)" % \
+                        (str(t.maxversion), str(t.maxversion_check))
                 for d in t.deps:
                     print "--- --> Dependency: %s - %s" % (d.name, str(d.met))
                 print
@@ -325,9 +330,10 @@
 
     print "\n=== TEST RESULTS ==="
     for t in test_suite.tests:
+        sys.stdout.write("--> %s --- " % t.test_name)
         if t.can_run is False:
+            print "SKIPPED"
             continue
-        sys.stdout.write("--> %s --- " % t.test_name)
         if t.passed is True:
             print "PASSED"
         else:




More information about the asterisk-commits mailing list