[Erp5-report] r8853 - /erp5/trunk/utils/erp5mechanize/userperzope.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 28 13:30:45 CEST 2006


Author: vincent
Date: Fri Jul 28 13:30:44 2006
New Revision: 8853

URL: http://svn.erp5.org?rev=8853&view=rev
Log:
Support new result file format (including the number of steps run in the test). The --maximum_duration now means the average duration of a step, not the average duration of the whole test anymore.

Modified:
    erp5/trunk/utils/erp5mechanize/userperzope.py

Modified: erp5/trunk/utils/erp5mechanize/userperzope.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/userperzope.py?rev=8853&r1=8852&r2=8853&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/userperzope.py (original)
+++ erp5/trunk/utils/erp5mechanize/userperzope.py Fri Jul 28 13:30:44 2006
@@ -97,7 +97,7 @@
     if field_list[-1] == 'FAILED':
       failed = True
       break
-    duration_list.append(float(field_list[2]))
+    duration_list.append(float(field_list[2])/float(field_list[3]))
   if len(line_list):
     result = {'user': failed==False and len(known_user_list) or 0, 'duration': len(duration_list) and sum(duration_list)/len(duration_list) or 0}
     if not result_list.has_key(len(known_zope_list)):




More information about the Erp5-report mailing list