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):
def _cleanupTestResult(self):
self.tic()
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)
for test_result in test_list:
if test_result.getSimulationState() in cleanup_state_list:
......@@ -802,4 +802,4 @@ class TestTaskDistribution(ERP5TypeTestCase):
# log(configuration_list)
def test_19_testMultiDistributor(self):
pass
\ No newline at end of file
pass
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