diff options
author | zach%zachlipton.com <> | 2001-10-06 12:49:06 +0200 |
---|---|---|
committer | zach%zachlipton.com <> | 2001-10-06 12:49:06 +0200 |
commit | 35f352200dafc39cdb587c4166de36e52f04a181 (patch) | |
tree | e14ac74e9c1d03a05b95ea1dc00f4813e81d949c /t/Support | |
parent | 4b1c3db97e5577fb78d511e336992f2661c94894 (diff) | |
download | bugzilla-35f352200dafc39cdb587c4166de36e52f04a181.tar.gz bugzilla-35f352200dafc39cdb587c4166de36e52f04a181.tar.xz |
Fixing issue where excluded files aren't excluded if they end in .pl or
.cgi.
Diffstat (limited to 't/Support')
-rw-r--r-- | t/Support/Files.pm | 9 |
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; } |