subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1387812 - /subversion/trunk/build/run_tests.py
Date Wed, 19 Sep 2012 23:20:52 GMT
Author: stsp
Date: Wed Sep 19 23:20:52 2012
New Revision: 1387812

URL: http://svn.apache.org/viewvc?rev=1387812&view=rev
Log:
* build/run_tests.py
  (TestHarness): In the progress callbacks, exit early if the expected number
   of dots have already been printed.

Modified:
    subversion/trunk/build/run_tests.py

Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1387812&r1=1387811&r2=1387812&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Wed Sep 19 23:20:52 2012
@@ -383,7 +383,7 @@ class TestHarness:
     # This has to be class-scoped for use in the progress_func()
     self.dots_written = 0
     def progress_func(completed):
-      if not self.log:
+      if not self.log or self.dots_written >= dot_count:
         return
       dots = (completed * dot_count) / total
       if dots > dot_count:
@@ -493,7 +493,7 @@ class TestHarness:
     # This has to be class-scoped for use in the progress_func()
     self.dots_written = 0
     def progress_func(completed, total):
-      if not self.log:
+      if not self.log or self.dots_written >= dot_count:
         return
       dots = (completed * dot_count) / total
       if dots > dot_count:



Mime
View raw message