Commit 24c177de authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_test_result: ERP5ScalabilityDistributor: Fix missing batch mode and docs.

parent b58b6ea4
...@@ -255,9 +255,11 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor): ...@@ -255,9 +255,11 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
return next_test return next_test
return json.dumps(next_test) return json.dumps(next_test)
security.declarePublic("isTestCaseAlive") security.declarePublic("isTestCaseAlive")
def isTestCaseAlive(self, test_result_line_path): def isTestCaseAlive(self, test_result_line_path, batch_mode=0):
"""
Is a test result line alive or not.
"""
portal = self.getPortalObject() portal = self.getPortalObject()
test_result_line = portal.restrictedTraverse(test_result_line_path) test_result_line = portal.restrictedTraverse(test_result_line_path)
return test_result_line.getSimulationState() == "started" return test_result_line.getSimulationState() == "started"
\ No newline at end of file
272 273
\ 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