File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 2727EOF
2828 unit_name => ' cpan-testers-matrix' , # used also for description and pidfile name # in this caseshould be cpan-testers-matrix.fast2
2929 port => 5002,
30+ external_url => ' https://fast2-matrix.cpantesters.org' , # used for ping test
3031 },
3132);
3233
@@ -169,10 +170,14 @@ sub check_dest_system_hostname {
169170require LWP::UserAgent;
170171my $ua = LWP::UserAgent-> new;
171172$ua -> timeout(10);
172- my $url = " http://$dest_system :$variant_info ->{port}" ;
173- my $resp = $ua -> get($url );
174- $resp -> is_success or error " Fetching $url failed: " . $resp -> dump ;
175- $resp -> decoded_content =~ / (CPAN Testers Matrix|JavaScript Required)/ or error " Unexpected content on $url : " . $resp -> decoded_content;
176- info " Fetching $url was successful: " . $resp -> status_line;
173+ for my $url (
174+ " http://$dest_system :$variant_info ->{port}" ,
175+ ($variant_info -> {external_url } ? $variant_info -> {external_url } : ()),
176+ ) {
177+ my $resp = $ua -> get($url );
178+ $resp -> is_success or error " Fetching $url failed: " . $resp -> dump ;
179+ $resp -> decoded_content =~ / (CPAN Testers Matrix|JavaScript Required)/ or error " Unexpected content on $url : " . $resp -> decoded_content;
180+ info " Fetching $url was successful: " . $resp -> status_line;
181+ }
177182
178183__END__
You can’t perform that action at this time.
0 commit comments