diff --git a/mozilla/webtools/bugzilla/t/Support/Files.pm b/mozilla/webtools/bugzilla/t/Support/Files.pm index ea1f5301a6a..c31cd75c40f 100644 --- a/mozilla/webtools/bugzilla/t/Support/Files.pm +++ b/mozilla/webtools/bugzilla/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; }