[mapserver-commits] r9638 - trunk/msautotest/pymod

svn at osgeo.org svn at osgeo.org
Sat Dec 26 10:44:06 EST 2009


Author: warmerdam
Date: 2009-12-26 10:44:04 -0500 (Sat, 26 Dec 2009)
New Revision: 9638

Modified:
   trunk/msautotest/pymod/mstestlib.py
Log:
make more resilient if there are no successes or fails!


Modified: trunk/msautotest/pymod/mstestlib.py
===================================================================
--- trunk/msautotest/pymod/mstestlib.py	2009-12-22 16:08:08 UTC (rev 9637)
+++ trunk/msautotest/pymod/mstestlib.py	2009-12-26 15:44:04 UTC (rev 9638)
@@ -331,5 +331,12 @@
                 init_count = init_count + 1
                 os.rename( 'result/' + out_file, 'expected/' + out_file )
 
-    print 'Test done (%.2f%% success):\n    %d tested skipped\n    %d tests succeeded\n    %d tests failed\n    %d test results initialized' \
-          % ((float(succeed_count)/float(succeed_count+fail_count)*100), skip_count, succeed_count, fail_count, init_count)
+    try:
+        print 'Test done (%.2f%% success):' % (float(succeed_count)/float(succeed_count+fail_count)*100)
+    except:
+        pass
+
+    print '%d tested skipped' % skip_count
+    print '%d tests succeeded' % succeed_count
+    print '%d tests failed' %fail_count
+    print '%d test results initialized' % init_count



More information about the mapserver-commits mailing list