]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 126955 - Bugzilla should support translated/localized templates. Patch by burnus...
authorgerv%gerv.net <>
Sun, 1 Mar 2009 04:03:14 +0000 (04:03 +0000)
committergerv%gerv.net <>
Sun, 1 Mar 2009 04:03:14 +0000 (04:03 +0000)
t/005whitespace.t

index f1d5f9be50410163594cff6e9ca6630b6c466644..51433fe134b3bc70709b61b7cfc56548a5964fad 100644 (file)
@@ -34,12 +34,13 @@ use Support::Templates;
 
 use File::Spec 0.82;
 use Test::More tests => (  scalar(@Support::Files::testitems)
-                         + scalar(@Support::Templates::actual_files));
+                         + $Support::Templates::num_actual_files);
 
 my @testitems = @Support::Files::testitems;
-my @templates = map(File::Spec->catfile($Support::Templates::include_path, $_),
-                    @Support::Templates::actual_files);
-push(@testitems, @templates);
+for my $path (@Support::Templates::include_paths) {
+   push(@testitems, map(File::Spec->catfile($path, $_),
+                        Support::Templates::find_actual_files($path)));
+}
 
 foreach my $file (@testitems) {
     open (FILE, "$file");