Changeset: 9e2e27b67362 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9e2e27b67362
Modified Files:
        testing/src/Mtest.py.in
Branch: Oct2010
Log Message:

Don't count skipped tests when determining whether to list failing tests.
If the number of skipped tests plus the number of failed tests is less
than 30, lists both, otherwise, if the number of failed tests is less
than 30, just list those.


diffs (22 lines):

diff -r 455de874dfc0 -r 9e2e27b67362 testing/src/Mtest.py.in
--- a/testing/src/Mtest.py.in   Fri Sep 17 15:55:19 2010 +0200
+++ b/testing/src/Mtest.py.in   Fri Sep 17 16:57:31 2010 +0200
@@ -3902,7 +3902,7 @@
         CreateHtmlIndex(env, *body)
 
         Failed = 0
-        for f in Failure[1:]:
+        for f in Failure[1:-1]:
             Failed += len(f)
         num_tests = 0
         for f in Failure:
@@ -3921,7 +3921,8 @@
                 how = z
                 what += "  %3d out of %3d tests %s\n" % 
(len(Failure[x]),num_tests, y)
                 # only report failed tests if there aren't too many
-                if Failed < 30:
+                if Failed < 30 and \
+                       (x != F_SKIP or len(Failure[F_SKIP]) + Failed < 30):
                     for f in Failure[x]:
                         what += "        %s\n" % f
         STDERR.flush()
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to