test_result: Retry failed test result lines

If a test result finish and its title match the test suite pattern allowed to
restart defined on test suite, it will be retried at most once.

Note about the test: The current behavior is to use PASS/FAIL for test result
and PASSED/FAILED for test result line. The test checks the actual values, if
we ever fix this inconsistency, we can safely update the test I believe.
10 jobs for feat/task_distribution_retry_flaky_tests in 0 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner1

03:49:37

passed ERP5.PerformanceTest-TestRunner1

00:39:07

passed ERP5.UnitTest-TestRunner1

01:28:38

passed ERP5.CodingStyleTest-TestRunner1

01:21:57

passed ERP5.PerformanceTest-TestRunner1

00:30:38

canceled ERP5.UnitTest-TestRunner1

failed ERP5.UnitTest-TestRunner1

01:26:15

canceled ERP5.UnitTest-TestRunner1

failed ERP5.UnitTest-TestRunner1

06:58:18

failed ERP5.UnitTest-TestRunner1

03:04:06