aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 4e6e88387..1182c09d4 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2376,12 +2376,14 @@ sub serverfortest {
return "no server specified";
}
- my $proto = lc($what[0]);
- chomp $proto;
- if (! grep /^$proto$/, @protocols) {
- if (substr($proto,0,5) ne "socks") {
- return "curl lacks any $proto support";
- }
+ for (@what) {
+ my $proto = lc($_);
+ chomp $proto;
+ if (! grep /^$proto$/, @protocols) {
+ if (substr($proto,0,5) ne "socks") {
+ return "curl lacks any $proto support";
+ }
+ }
}
return &startservers(@what);