Commit ac0b0793 authored by Sebastien Robin's avatar Sebastien Robin

test_result: really cancel all tests created by unit test

Live tests was sometimes not working because of data remaining from other tests
parent 968c9cad
...@@ -246,7 +246,7 @@ class TestTaskDistribution(ERP5TypeTestCase): ...@@ -246,7 +246,7 @@ class TestTaskDistribution(ERP5TypeTestCase):
def _cleanupTestResult(self): def _cleanupTestResult(self):
self.tic() self.tic()
cleanup_state_list = ['started', 'stopped'] cleanup_state_list = ['started', 'stopped']
test_list = self.test_result_module.searchFolder(title="TEST FOO", test_list = self.test_result_module.searchFolder(title='"TEST FOO" OR "test suite %"',
simulation_state=cleanup_state_list) simulation_state=cleanup_state_list)
for test_result in test_list: for test_result in test_list:
if test_result.getSimulationState() in cleanup_state_list: if test_result.getSimulationState() in cleanup_state_list:
......
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