Commit 88161579 authored by Benjamin Blanc's avatar Benjamin Blanc

util: add TestResult features

parent 020d0bde
...@@ -29,7 +29,12 @@ class ScalabilityLauncher(object): ...@@ -29,7 +29,12 @@ class ScalabilityLauncher(object):
description='Run ERP5 benchmarking scalability suites.')) description='Run ERP5 benchmarking scalability suites.'))
else: else:
self.__argumentNamespace = namespace self.__argumentNamespace = namespace
# Here make a connection with erp5 master # Here make a connection with erp5 master
portal_url = __argumentNamespace.test_result_url
result = taskdistribution.TestResultProxyProxy(portal_url, 1.0,
self._logger, __argumentNamespace.test_result_url,
__argumentNamespace.node_title, __argumentNamespace.revision)
@staticmethod @staticmethod
def _addParserArguments(parser): def _addParserArguments(parser):
......
...@@ -350,6 +350,16 @@ class TestResultProxy(RPCRetry): ...@@ -350,6 +350,16 @@ class TestResultProxy(RPCRetry):
if self._watcher_thread is not None: if self._watcher_thread is not None:
self._watcher_thread.join() self._watcher_thread.join()
class TestResultProxyProxy(TestResultProxy):
"""
A wrapper/proxy to TestResultProxy
"""
def __init__(self, portal_url, retry_time, logger, test_result_path,
node_title, revision):
proxy = ServerProxy(portal_url, allow_none=True)
TestResultProxy.__init__(proxy, retry_time, logger, test_result_path,
node_title, revision)
class ServerProxy(xmlrpclib.ServerProxy): class ServerProxy(xmlrpclib.ServerProxy):
def __init__(self, *args, **kw): def __init__(self, *args, **kw):
......
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