Commit f7b9ce1c authored by Arnaud Fontaine's avatar Arnaud Fontaine

With SlapOS, notify the master at postRun().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ddc6c4ae
...@@ -43,8 +43,20 @@ class ScalabilityTester(PerformanceTester): ...@@ -43,8 +43,20 @@ class ScalabilityTester(PerformanceTester):
def preRun(self, *args, **kwargs): def preRun(self, *args, **kwargs):
pass pass
def postRun(self, *args, **kwargs): def postRun(self, error_message_set):
pass 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): def getResultClass(self):
if not self._argument_namespace.erp5_publish_url: if not self._argument_namespace.erp5_publish_url:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment