summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-03-12 22:33:55 +0100
committerbbaetz%student.usyd.edu.au <>2002-03-12 22:33:55 +0100
commit38551035718d027fb8794f56a15fe1bf5a63676b (patch)
tree56a78274f178f830d49a04a8a0d00ac0836d4038
parent0930c074fa7d8dabed00af2ba39a177a8d00167f (diff)
downloadbugzilla-38551035718d027fb8794f56a15fe1bf5a63676b.tar.gz
bugzilla-38551035718d027fb8794f56a15fe1bf5a63676b.tar.xz
Bug 130254 - Template params don't have to exist, since they may be
subject to interpolation. Ignore names with $ in them as a workaround r=myk x 2
-rw-r--r--t/Support/Templates.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index c4fc3160a..91946507d 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -39,6 +39,9 @@ foreach my $file (@files) {
foreach my $line (@lines) {
if ($line =~ m/template->process\(\"(.+?)\", .+?\)/) {
$template = $1;
+ # Ignore templates with $ in the name, since they're
+ # probably vars, not real files
+ next if $template =~ m/\$/;
push (@testitems, $template) unless $t{$template};
$t{$template} = 1;
}