Commit d41020e3 authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_test_result: Fix parameter orders in startTestSuite

parent 8ef2ab3d
...@@ -155,11 +155,13 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor): ...@@ -155,11 +155,13 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
security.declarePublic("startTestSuite") security.declarePublic("startTestSuite")
def startTestSuite(self,title, batch_mode=0, computer_guid='unknown'): def startTestSuite(self,title, computer_guid='unknown', batch_mode=0):
""" """
startTestSuite : subscribe node + return testsuite list to the master startTestSuite : subscribe node + return testsuite list to the master
""" """
config_list = [] config_list = []
super(ERP5ScalabilityDistributor,
self).subscribeNode(title=title, computer_guid=computer_guid, batch_mode=batch_mode)
test_node = self.getTestNode(title,batch_mode) test_node = self.getTestNode(title,batch_mode)
test_suite_module = self._getTestSuiteModule() test_suite_module = self._getTestSuiteModule()
test_node_module = self._getTestNodeModule() test_node_module = self._getTestNodeModule()
...@@ -167,11 +169,14 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor): ...@@ -167,11 +169,14 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
# If the testnode wich request testsuites is not the master # If the testnode wich request testsuites is not the master
# he does not have to receive any testsuites # he does not have to receive any testsuites
master_test_node_title = [x.getTitle() for x in test_node_module.searchFolder( master_test_node_title_list = [x.getTitle() for x in test_node_module.searchFolder(
validatation_state = 'validated') if (x.getMaster() == True) ][0] validatation_state = 'validated') if (x.getMaster() == True) ]
if len(master_test_node_title_list) > 0:
master_test_node_title = master_test_node_title_list[0]
if title == master_test_node_title: if title == master_test_node_title:
return super(ERP5ScalabilityDistributor, return super(ERP5ScalabilityDistributor,
self).startTestSuite(title=title, batch_mode=batch_mode, computer_guid=computer_guid) self).startTestSuite(title=title, batch_mode=batch_mode, computer_guid=computer_guid)
else: else:
if batch_mode: if batch_mode:
......
275 276
\ No newline at end of file \ No newline at end of file
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