Unverified Commit c4af495d authored by boklm's avatar boklm
Browse files

Run failing tests 2 times

parent 3d09fac4
......@@ -58,8 +58,15 @@ sub run_tests {
set_Xmode($tbbinfos->{Xdisplay}, $test->{resolution});
}
$test->{pre}->($tbbinfos, $test) if $test->{pre};
$test_types->{$test->{type}}->($tbbinfos, $test)
$test->{tried} = 0;
while ($test->{tried} < ($test->{retry} // 2)) {
$test->{tried} += 1;
$test_types->{$test->{type}}->($tbbinfos, $test)
if $test_types->{$test->{type}};
if (!defined $test->{results} || $test->{results}{success}) {
last;
}
}
$test->{post}->($tbbinfos, $test) if $test->{post};
if ($options->{xdummy} && $test->{resolution}) {
set_Xmode($tbbinfos->{Xdisplay}, $options->{resolution});
......
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