Unverified Commit 25ab7878 authored by boklm's avatar boklm
Browse files

Add the default-retry option

parent 9283635a
......@@ -62,11 +62,12 @@ my %default_options = (
testsuite => undef,
cleanup => 1,
PTtests => 1,
'default-retry' => 2,
);
sub get_options {
my @options = qw(starttor! tor-control-port=i
my @options = qw(starttor! tor-control-port=i default-retry=i
tor-socks-port=i reports-dir=s gpgcheck! keyring=s
xvfb! name=s download-dir=s config=s
action=s enable-tests=s upload-to=s os=s arch=s
......
......@@ -67,7 +67,7 @@ sub run_tests {
}
$test->{pre}->($tbbinfos, $test) if $test->{pre};
$test->{tried} = 0;
while ($test->{tried} < ($test->{retry} // 2)) {
while ($test->{tried} < ($test->{retry} // $options->{'default-retry'})) {
$test_types->{$test->{type}}->($tbbinfos, $test)
if $test_types->{$test->{type}};
$test->{tried} += 1;
......
......@@ -139,6 +139,10 @@ Available options
--no-PTtests::
Disable Pluggable Transport tests.
--default-retry::
By default, failing tests are retried two times. You can use this option
to change this number.
Configuration Files
-------------------
......
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