Commit aa243abb authored by Benjamin Blanc's avatar Benjamin Blanc

util: fix bug on test_result_proxy

parent ff05f123
......@@ -43,10 +43,8 @@ class ScalabilityLauncher(object):
logger.addHandler(file_handler)
self.log = logger.info
# Proxy to with erp5 master test_result
result = taskdistribution.TestResultProxyProxy(self.__argumentNamespace.portal_url,
self.test_result = taskdistribution.TestResultProxyProxy(self.__argumentNamespace.portal_url,
1.0, logger, self.__argumentNamespace.test_result_url,
self.__argumentNamespace.node_title, self.__argumentNamespace.revision)
......@@ -100,6 +98,8 @@ class ScalabilityLauncher(object):
"""
Update state of a test_result_line
"""
# TODO : set a line per count value and use setState (?)
#
pass
def _getNextTest(self):
......@@ -112,14 +112,13 @@ class ScalabilityLauncher(object):
return next_test
def run(self):
self.log("Scalability Launcher started")
max_time = 10
start_time = time.time()
error_message_set, exit_status = set(), 0
print self.__argumentNamespace.test_result_url
print self.__argumentNamespace.erp5_url
print self.__argumentNamespace.revision
print self.__argumentNamespace.node_title
self.log("%s", self.test_result.isAlive())
while time.time()-start_time < max_time:
current_test = self._getNextTest()
......
......@@ -360,10 +360,10 @@ class TestResultProxyProxy(TestResultProxy):
proxy = ServerProxy(
portal_url,
allow_none=True,
).portal_task_distribution
).test_result_module
except:
raise ValueError("Cannot instanciate ServerProxy")
TestResultProxy(proxy, retry_time, logger, test_result_path,
TestResultProxy.__init__(self, proxy, retry_time, logger, test_result_path,
node_title, revision)
......
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