diff options
author | bbaetz%student.usyd.edu.au <> | 2002-03-12 21:33:55 +0000 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-03-12 21:33:55 +0000 |
commit | 38551035718d027fb8794f56a15fe1bf5a63676b (patch) | |
tree | 56a78274f178f830d49a04a8a0d00ac0836d4038 /t/Support | |
parent | 0930c074fa7d8dabed00af2ba39a177a8d00167f (diff) | |
download | bugs-38551035718d027fb8794f56a15fe1bf5a63676b.tar bugs-38551035718d027fb8794f56a15fe1bf5a63676b.tar.gz bugs-38551035718d027fb8794f56a15fe1bf5a63676b.tar.bz2 bugs-38551035718d027fb8794f56a15fe1bf5a63676b.tar.xz bugs-38551035718d027fb8794f56a15fe1bf5a63676b.zip |
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
Diffstat (limited to 't/Support')
-rw-r--r-- | t/Support/Templates.pm | 3 |
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; } |