summaryrefslogtreecommitdiffstats
path: root/t/Support
diff options
context:
space:
mode:
authorSimon Green <sgreen+mozilla@redhat.com>2012-11-13 07:43:01 +0100
committerByron Jones <bjones@mozilla.com>2012-11-13 07:43:01 +0100
commit718f80eda24c887fa1e31b8142776351db64fe10 (patch)
treef0abbc08ca4a941be5593bdd58a36f16a4bd31a9 /t/Support
parent8ceb5a0bf4540f9c1389bccfc62764f4eee8e5a4 (diff)
downloadbugzilla-718f80eda24c887fa1e31b8142776351db64fe10.tar.gz
bugzilla-718f80eda24c887fa1e31b8142776351db64fe10.tar.xz
Bug 615627: Make t/012throwables.t know about user errors defined in extensions
r=dkl, a=LpSolit
Diffstat (limited to 't/Support')
-rw-r--r--t/Support/Files.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/Support/Files.pm b/t/Support/Files.pm
index 24b58c982..1a8e6ee37 100644
--- a/t/Support/Files.pm
+++ b/t/Support/Files.pm
@@ -16,6 +16,14 @@ use File::Find;
find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla');
push(@files, 'extensions/create.pl');
+my @extensions = glob('extensions/*');
+foreach my $extension (@extensions) {
+ # Skip disabled extensions
+ next if -e "$extension/disabled";
+
+ find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, $extension);
+}
+
sub isTestingFile {
my ($file) = @_;
my $exclude;