From: zach%zachlipton.com <> Date: Sat, 6 Oct 2001 10:49:06 +0000 (+0000) Subject: Fixing issue where excluded files aren't excluded if they end in .pl or X-Git-Tag: bugzilla-2.14.1~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35f352200dafc39cdb587c4166de36e52f04a181;p=thirdparty%2Fbugzilla.git Fixing issue where excluded files aren't excluded if they end in .pl or .cgi. --- diff --git a/t/Support/Files.pm b/t/Support/Files.pm index ea1f5301a6..c31cd75c40 100644 --- a/t/Support/Files.pm +++ b/t/Support/Files.pm @@ -41,6 +41,11 @@ $file = '*'; sub isTestingFile { my ($file) = @_; + my $exclude; + foreach $exclude (@exclude_files) { + if ($file eq $exclude) { return undef; } # get rid of excluded files. + } + if ($file =~ /\.cgi$|\.pl$/) { return 1; } @@ -48,10 +53,6 @@ sub isTestingFile { foreach $additional (@additional_files) { if ($file eq $additional) { return 1; } } - my $exclude; - foreach $exclude (@exclude_files) { - if ($file eq $exclude) { return undef; } # get rid of excluded files. - } return undef; }