You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/06/12 16:45:29 UTC

svn commit: r954014 - /subversion/trunk/build/run_tests.py

Author: hwright
Date: Sat Jun 12 14:45:29 2010
New Revision: 954014

URL: http://svn.apache.org/viewvc?rev=954014&view=rev
Log:
* build/run_tests.py:
  Move a magic number to the top of the file.

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=954014&r1=954013&r2=954014&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Sat Jun 12 14:45:29 2010
@@ -41,6 +41,9 @@ and filename of a test program, optional
 separated list of test numbers; the default is to run all the tests in it.
 '''
 
+# A few useful constants
+LINE_LENGTH = 40
+
 import os, sys
 from datetime import datetime
 
@@ -235,7 +238,7 @@ class TestHarness:
       # Using write here because we don't want even a trailing space
       test_info = '%s [%d/%d]' % (progbase, test_nr + 1, total_tests)
       sys.stdout.write('Running tests in %s' % (test_info, ))
-      sys.stdout.write('.'*(40 - len(test_info)))
+      sys.stdout.write('.'*(LINE_LENGTH - len(test_info)))
 
     log.write('START: %s\n' % progbase)
     log.flush()