summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzach%zachlipton.com <>2001-10-06 12:49:06 +0200
committerzach%zachlipton.com <>2001-10-06 12:49:06 +0200
commit35f352200dafc39cdb587c4166de36e52f04a181 (patch)
treee14ac74e9c1d03a05b95ea1dc00f4813e81d949c
parent4b1c3db97e5577fb78d511e336992f2661c94894 (diff)
downloadbugzilla-35f352200dafc39cdb587c4166de36e52f04a181.tar.gz
bugzilla-35f352200dafc39cdb587c4166de36e52f04a181.tar.xz
Fixing issue where excluded files aren't excluded if they end in .pl or
.cgi.
-rw-r--r--t/Support/Files.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/Support/Files.pm b/t/Support/Files.pm
index ea1f5301a..c31cd75c4 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;
}