[Yt-svn] commit/yt: MatthewTurk: Print out the number of pass/fail tests.

Bitbucket commits-noreply at bitbucket.org
Mon Oct 17 07:06:14 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/f0cb362bd9a6/
changeset:   f0cb362bd9a6
branch:      yt
user:        MatthewTurk
date:        2011-10-17 16:06:05
summary:     Print out the number of pass/fail tests.
affected #:  1 file (-1 bytes)

--- a/tests/runall.py	Sat Oct 15 11:56:37 2011 -0400
+++ b/tests/runall.py	Mon Oct 17 10:06:05 2011 -0400
@@ -103,5 +103,11 @@
         rtr.run_test(test_name)
     if watcher is not None:
         rtr.watcher.report()
+    failures = 0
+    passes = 1
     for test_name, result in sorted(rtr.passed_tests.items()):
         print "TEST %s: %s" % (test_name, result)
+        if result: passes += 1
+        else: failures += 1
+    print "Number of passes  : %s" % passes
+    print "Number of failures: %s" % failures

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list