Loading TBBTestSuite/BrowserBundleTests.pm +11 −1 Original line number Diff line number Diff line Loading @@ -356,6 +356,16 @@ sub check_opened_connections { next unless $line =~ m/ > \[\d+\] -> (.+)/; $test->{results}{connections}{$1}++; } my %bad_connections = %{$test->{results}{connections}}; delete $bad_connections{"127.0.0.1:$options->{'tor-control-port'}"}; delete $bad_connections{"127.0.0.1:$options->{'tor-socks-port'}"}; # For some reasons, tor-browser creates two connections to the default # socks port even when when TOR_SOCKS_PORT is set # https://lists.torproject.org/pipermail/tbb-dev/2014-May/000050.html delete $bad_connections{'127.0.0.1:9150'} if $bad_connections{'127.0.0.1:9150'} <= 2; $test->{results}{success} = 0 if %bad_connections; $test->{results}{bad_connections} = \%bad_connections; } sub check_modified_files { Loading Loading @@ -459,9 +469,9 @@ sub mozmill_run { $i++; } $test->{results} = decode_json(read_file($results_file)); $test->{results}{success} = !$test->{results}{results}->[0]->{failed}; check_opened_connections($tbbinfos, $test); check_modified_files($tbbinfos, $test); $test->{results}{success} = !$test->{results}{results}->[0]->{failed}; } sub selenium_run { Loading tmpl/details_mozmill.html +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ <b>List of opened connections:</b> <ul> [% FOREACH con IN test.results.connections.nsort.reverse %] <li>[% con %]: [% test.results.connections.$con %] connections</li> <li[% IF test.results.bad_connections.$con %] class="text_red"[% END %]>[% con %]: [% test.results.connections.$con %] connections</li> [% END %] </ul> [% END %] Loading tmpl/details_selenium.html +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ <b>List of opened connections:</b> <ul> [% FOREACH con IN test.results.connections.nsort.reverse %] <li>[% con %]: [% test.results.connections.$con %] connections</li> <li[% IF test.results.bad_connections.$con %] class="text_red"[% END %]>[% con %]: [% test.results.connections.$con %] connections</li> [% END %] </ul> [% END %] tmpl/report.html +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ .text_red A { color: #FF0000; } .text_red { color: #FF0000; } </style> [% INCLUDE togglecontent.js %] </head> Loading Loading
TBBTestSuite/BrowserBundleTests.pm +11 −1 Original line number Diff line number Diff line Loading @@ -356,6 +356,16 @@ sub check_opened_connections { next unless $line =~ m/ > \[\d+\] -> (.+)/; $test->{results}{connections}{$1}++; } my %bad_connections = %{$test->{results}{connections}}; delete $bad_connections{"127.0.0.1:$options->{'tor-control-port'}"}; delete $bad_connections{"127.0.0.1:$options->{'tor-socks-port'}"}; # For some reasons, tor-browser creates two connections to the default # socks port even when when TOR_SOCKS_PORT is set # https://lists.torproject.org/pipermail/tbb-dev/2014-May/000050.html delete $bad_connections{'127.0.0.1:9150'} if $bad_connections{'127.0.0.1:9150'} <= 2; $test->{results}{success} = 0 if %bad_connections; $test->{results}{bad_connections} = \%bad_connections; } sub check_modified_files { Loading Loading @@ -459,9 +469,9 @@ sub mozmill_run { $i++; } $test->{results} = decode_json(read_file($results_file)); $test->{results}{success} = !$test->{results}{results}->[0]->{failed}; check_opened_connections($tbbinfos, $test); check_modified_files($tbbinfos, $test); $test->{results}{success} = !$test->{results}{results}->[0]->{failed}; } sub selenium_run { Loading
tmpl/details_mozmill.html +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ <b>List of opened connections:</b> <ul> [% FOREACH con IN test.results.connections.nsort.reverse %] <li>[% con %]: [% test.results.connections.$con %] connections</li> <li[% IF test.results.bad_connections.$con %] class="text_red"[% END %]>[% con %]: [% test.results.connections.$con %] connections</li> [% END %] </ul> [% END %] Loading
tmpl/details_selenium.html +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ <b>List of opened connections:</b> <ul> [% FOREACH con IN test.results.connections.nsort.reverse %] <li>[% con %]: [% test.results.connections.$con %] connections</li> <li[% IF test.results.bad_connections.$con %] class="text_red"[% END %]>[% con %]: [% test.results.connections.$con %] connections</li> [% END %] </ul> [% END %]
tmpl/report.html +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ .text_red A { color: #FF0000; } .text_red { color: #FF0000; } </style> [% INCLUDE togglecontent.js %] </head> Loading