Commit e1cec59e authored by Łukasz Nowak's avatar Łukasz Nowak

[taskdistribution] Make node_title optional

createTestResult is called also without node_title, and it shall allow
execution in such case.
parent 49421fcf
...@@ -392,8 +392,9 @@ class ERP5ProjectUnitTestDistributor(XMLObject): ...@@ -392,8 +392,9 @@ class ERP5ProjectUnitTestDistributor(XMLObject):
""" """
LOG('ERP5ProjectUnitTestDistributor.createTestResult', 0, (node_title, test_title)) LOG('ERP5ProjectUnitTestDistributor.createTestResult', 0, (node_title, test_title))
portal = self.getPortalObject() portal = self.getPortalObject()
test_node = self._getTestNodeFromTitle(node_title) if node_title:
test_node.setPingDate() test_node = self._getTestNodeFromTitle(node_title)
test_node.setPingDate()
test_suite = self._getTestSuiteFromTitle(test_title) test_suite = self._getTestSuiteFromTitle(test_title)
if test_suite is not None: if test_suite is not None:
test_suite.setPingDate() test_suite.setPingDate()
......
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