Commit b58b6ea4 authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_test_result: ERP5ScalabilityDistributor: isTestCaseAlive method

parent c5fa46d0
...@@ -254,3 +254,10 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor): ...@@ -254,3 +254,10 @@ class ERP5ScalabilityDistributor(ERP5ProjectUnitTestDistributor):
if batch_mode: if batch_mode:
return next_test return next_test
return json.dumps(next_test) return json.dumps(next_test)
security.declarePublic("isTestCaseAlive")
def isTestCaseAlive(self, test_result_line_path):
portal = self.getPortalObject()
test_result_line = portal.restrictedTraverse(test_result_line_path)
return test_result_line.getSimulationState() == "started"
\ No newline at end of file
271 272
\ 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