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

svn at osgeo.org svn at osgeo.org
Tue Oct 6 14:14:05 EDT 2009


Author: tomkralidis
Date: 2009-10-06 14:14:05 -0400 (Tue, 06 Oct 2009)
New Revision: 9386

Modified:
   trunk/msautotest/pymod/mstestlib.py
Log:
add percentage to final report


Modified: trunk/msautotest/pymod/mstestlib.py
===================================================================
--- trunk/msautotest/pymod/mstestlib.py	2009-10-06 17:54:12 UTC (rev 9385)
+++ trunk/msautotest/pymod/mstestlib.py	2009-10-06 18:14:05 UTC (rev 9386)
@@ -330,7 +330,6 @@
                 print '     no expected file exists, accepting result as expected.'
                 init_count = init_count + 1
                 os.rename( 'result/' + out_file, 'expected/' + out_file )
-                
-    print 'Test done:\n    %d tested skipped\n    %d tests succeeded\n    %d tests failed\n    %d test results initialized' \
-          % (skip_count, succeed_count, fail_count, init_count )
 
+    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)



More information about the mapserver-commits mailing list