GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

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

Don't retry a test in case of unexpected connection or modified file

parent 4714f1a4
......@@ -502,14 +502,20 @@ sub check_opened_connections {
&& $bad_connections{'127.0.0.1:9150'} <= 2) {
delete $bad_connections{'127.0.0.1:9150'}
}
$test->{results}{success} = 0 if %bad_connections;
if (%bad_connections) {
$test->{results}{success} = 0;
$test->{retry} = 0;
}
$test->{results}{bad_connections} = \%bad_connections;
}
sub check_modified_files {
my ($tbbinfos, $test) = @_;
my @bad_modified_files = @{$test->{results}{modified_files}};
$test->{results}{success} = 0 if @bad_modified_files;
if (@bad_modified_files) {
$test->{results}{success} = 0;
$test->{retry} = 0;
}
$test->{results}{bad_modified_files} = \@bad_modified_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