[141367] trunk/base/src/tests/test.tcl

raimue at macports.org raimue at macports.org
Sat Dec 12 01:13:56 PST 2015


Revision: 141367
          https://trac.macports.org/changeset/141367
Author:   raimue at macports.org
Date:     2015-10-16 07:09:10 -0700 (Fri, 16 Oct 2015)
Log Message:
-----------
tests: Avoid leading zeroes, use spaces for readability

Modified Paths:
--------------
    trunk/base/src/tests/test.tcl

Modified: trunk/base/src/tests/test.tcl
===================================================================
--- trunk/base/src/tests/test.tcl	2015-10-16 14:05:11 UTC (rev 141366)
+++ trunk/base/src/tests/test.tcl	2015-10-16 14:09:10 UTC (rev 141367)
@@ -100,16 +100,16 @@
 
         # Format output
         if {$total < 10} {
-            set total "0${total}"
+            set total " ${total}"
         }
         if {$pass < 10} {
-            set pass "0${pass}"
+            set pass " ${pass}"
         }
         if {$skip < 10} {
-            set skip "0${skip}"
+            set skip " ${skip}"
         }
         if {$fail < 10} {
-            set fail "0${fail}"
+            set fail " ${fail}"
         }
 
         # Check for errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/9e6d90ce/attachment.html>


More information about the macports-changes mailing list