Commit 0175c0ac authored by Sebastien Robin's avatar Sebastien Robin

erp5-util-taskdistribution: TestResultProxyProxy class seems useless

We only only need an usual test result proxy, we only need the additional
method getRunningTestCase
parent 87fbccb4
......@@ -188,7 +188,7 @@ class ScalabilityLauncher(object):
self.log = logger.info
# Proxy to with erp5 master test_result
self.test_result = taskdistribution.TestResultProxyProxy(
self.test_result = taskdistribution.TestResultProxy(
self.__argumentNamespace.test_suite_master_url,
1.0, DummyLogger(self.log),
self.__argumentNamespace.test_result_path,
......
......@@ -369,26 +369,9 @@ class TestResultProxy(RPCRetry):
"""
return self._retryRPC('stopTest', [self._test_result_path])
class TestResultProxyProxy(TestResultProxy):
"""
A wrapper/proxy to TestResultProxy
"""
def __init__(self, test_suite_master_url, retry_time, logger, test_result_path,
node_title, revision):
try:
proxy = ServerProxy(
test_suite_master_url,
allow_none=True,
).portal_task_distribution
except:
raise ValueError("Cannot instanciate ServerProxy")
TestResultProxy.__init__(self, proxy, retry_time, logger, test_result_path,
node_title, revision)
def getRunningTestCase(self):
"""
A proxy to getNextTestCase
Return the relative path of the test with the running state
Return the relative path of the next test with the running state
"""
return self._retryRPC('getRunningTestCase', [self._test_result_path])
......
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