summaryrefslogtreecommitdiffstats
path: root/t/004template.t
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-06-23 20:43:18 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-06-23 20:43:18 +0200
commitc246445ab9801f28f99d6c88395bd3238b11f6bd (patch)
treefe3d2477699b94ec157be2f0f580f0401c450a98 /t/004template.t
parent1b2a97410df9b794a820d88ce5e4723688e3499a (diff)
downloadbugzilla-c246445ab9801f28f99d6c88395bd3238b11f6bd.tar.gz
bugzilla-c246445ab9801f28f99d6c88395bd3238b11f6bd.tar.xz
Bug 663835 - Extensions templates are not tested by the normal sanity test scripts
r/a=mkanat
Diffstat (limited to 't/004template.t')
-rw-r--r--t/004template.t17
1 files changed, 7 insertions, 10 deletions
diff --git a/t/004template.t b/t/004template.t
index 31ce7927c..d38ae37e2 100644
--- a/t/004template.t
+++ b/t/004template.t
@@ -66,16 +66,13 @@ sub existOnce {
# Check to make sure all templates that are referenced in
# Bugzilla exist in the proper place.
-foreach my $lang (@languages) {
- foreach my $file (@referenced_files) {
- my @path = map(File::Spec->catfile($_, $file),
- split(':', $include_path{$lang} . ":" . $include_path{"en"}));
- if (my $path = existOnce(@path)) {
- ok(1, "$path exists");
- } else {
- ok(0, "$file cannot be located --ERROR");
- print $fh "Looked in:\n " . join("\n ", @path) . "\n";
- }
+foreach my $file (@referenced_files) {
+ my @path = map(File::Spec->catfile($_, $file), @include_paths);
+ if (my $path = existOnce(@path)) {
+ ok(1, "$path exists");
+ } else {
+ ok(0, "$file cannot be located --ERROR");
+ print $fh "Looked in:\n " . join("\n ", @path) . "\n";
}
}