[Erp5-report] r45973 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 6 16:22:50 CEST 2011


Author: arnaud.fontaine
Date: Wed Jul  6 16:22:50 2011
New Revision: 45973

URL: http://svn.erp5.org?rev=45973&view=rev
Log:
With SlapOS, notify the master at postRun().

Modified:
    erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/scalability_tester.py

Modified: erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/scalability_tester.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/scalability_tester.py?rev=45973&r1=45972&r2=45973&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/scalability_tester.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/scalability_tester.py [utf8] Wed Jul  6 16:22:50 2011
@@ -43,8 +43,20 @@ class ScalabilityTester(PerformanceTeste
   def preRun(self, *args, **kwargs):
     pass
 
-  def postRun(self, *args, **kwargs):
-    pass
+  def postRun(self, error_message_set):
+    from logging import Formatter
+    import sys
+    import urllib
+    import urllib2
+
+    try:
+      urllib2.urlopen("http://[%s]:%d/report" % \
+                        (self._argument_namespace.manager_address,
+                         self._argument_namespace.manager_port),
+                      urllib.urlencode({'error_message_set': '|'.join(error_message_set)})).close()
+
+    except:
+      print >>sys.stderr, "ERROR: %s" % Formatter().formatException(sys.exc_info())
 
   def getResultClass(self):
     if not self._argument_namespace.erp5_publish_url:



More information about the Erp5-report mailing list