1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

runtests: match keywords case insensitively

This commit is contained in:
Daniel Stenberg 2017-08-14 23:05:11 +02:00
parent adc35a4f19
commit 5c2aac7162
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -3585,9 +3585,9 @@ sub singletest {
for $k (@keywords) {
chomp $k;
if ($disabled_keywords{$k}) {
if ($disabled_keywords{lc($k)}) {
$why = "disabled by keyword";
} elsif ($enabled_keywords{$k}) {
} elsif ($enabled_keywords{lc($k)}) {
$match = 1;
}
}
@ -5382,7 +5382,7 @@ EOHELP
$disabled_keywords{$1}=$1;
}
elsif($ARGV[0] =~ /^([-[{a-zA-Z].*)/) {
$enabled_keywords{$1}=$1;
$enabled_keywords{lc($1)}=$1;
}
else {
print "Unknown option: $ARGV[0]\n";