Commit 7b964df7 authored by Sebastien Robin's avatar Sebastien Robin

take into account allow_restart also with new style test results

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