[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:43 UTC 2009


The following commit has been merged in the upstream branch:
commit dc5a2675270526bba562edb40bd09de202787612
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Tue Sep 18 08:23:11 2007 +1000

    Improved formatting of test suite doc header
    
    darcs-hash:20070917222311-d4795-b31262f452c06b7352e88df91e58e83e41e748bc.gz

diff --git a/test/test.py b/test/test.py
index 36706b6..516ff7c 100644
--- a/test/test.py
+++ b/test/test.py
@@ -45,7 +45,13 @@ print >>summary, r'{\bf Path} &', path, r'\\'
 print >>summary, r'{\bf System} &', system, r'\\'
 print >>summary, r'{\bf Start} &', starttime.strftime('%a %d %b %H:%M:%S'), r'\\'
 print >>summary, r'{\bf Finish} &', endtime.strftime('%a %d %b %H:%M:%S'), r'\\'
-print >>summary, r'{\bf Elapsed} &', repr(e.days) + ":" + repr(h) + ":" + repr(m) + ":" + repr(s), r'\\'
+elapsed = ""
+if e.days > 0:
+    elapsed += '%02d:' % e.days
+if h > 0:
+    elapsed += '%02d:' % h
+elapsed += '%02d:%02d' % (m,s)
+print >>summary, r'{\bf Elapsed} &', elapsed, r'\\'
 print >>summary, r'{\bf Status} &',
 if failed:
     print >>summary, r'{\color{Red}FAIL (' + repr(failed) + '/' + repr(n) +')}'

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list