diff options
author | gerv%gerv.net <> | 2003-11-09 03:51:07 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2003-11-09 03:51:07 +0100 |
commit | ef05aed5674b707b85233a6670edb500fd70b77d (patch) | |
tree | 0fc84b8503d69888591291a25c158a15760efbf9 | |
parent | 090dae01f8ab1810120276d48d265a19588be664 (diff) | |
download | bugzilla-ef05aed5674b707b85233a6670edb500fd70b77d.tar.gz bugzilla-ef05aed5674b707b85233a6670edb500fd70b77d.tar.xz |
Bug 225081 - Tests are failing due to checkin for bug 223913. Sorry about that - it worked on my machine, but not any machine without the excluded template. Doh. Patch by gerv; r,a=mozbot.
-rw-r--r-- | t/009bugwords.t | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/t/009bugwords.t b/t/009bugwords.t index 564e7f67a..b6cc73699 100644 --- a/t/009bugwords.t +++ b/t/009bugwords.t @@ -40,30 +40,13 @@ use Bugzilla::Util; use File::Spec 0.82; -# We have a list of templates to exclude, if present. This allows us to exclude -# sample and b.m.o.-specific templates. Do _not_ add a template to this list -# without checking with developers@bugzilla.org first. -my @exclude; +use Test::More tests => ($Support::Templates::num_actual_files); -BEGIN { - @exclude = ( - 'template/en/default/pages/etiquette.html.tmpl' - ); -} - -use Test::More tests => ($Support::Templates::num_actual_files - - scalar(@exclude)); - -# Find all the templates (except those in @exclude) +# Find all the templates my @testitems; for my $path (@Support::Templates::include_paths) { - my @items = map(File::Spec->catfile($path, $_), - Support::Templates::find_actual_files($path)); - foreach my $item (@items) { - if (lsearch(\@exclude, $item) == -1) { - push(@testitems, $item); - } - } + push(@testitems, map(File::Spec->catfile($path, $_), + Support::Templates::find_actual_files($path))); } foreach my $file (@testitems) { |