Commit 608b1fa1 authored by Sebastien Robin's avatar Sebastien Robin

take into account allow_restart also with new style test results

parent 77c3cd8b
...@@ -146,7 +146,8 @@ class TaskDistributionTool(BaseTool): ...@@ -146,7 +146,8 @@ class TaskDistributionTool(BaseTool):
return test_result.getRelativeUrl(), last_revision return test_result.getRelativeUrl(), last_revision
if last_state in ('stopped', 'failed'): if last_state in ('stopped', 'failed'):
if reference_list_string is not None: if reference_list_string is not None:
if reference_list_string == test_result.getReference(): if reference_list_string == test_result.getReference() \
and not allow_restart:
return return
elif last_revision == int_index and not allow_restart: elif last_revision == int_index and not allow_restart:
return return
......
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