From facb5cb25a3e81952282b228190870640a383295 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Aug 2018 13:50:39 -0300 Subject: [PATCH] Bug 13618: Fix wrong condition in xt tests Signed-off-by: Nick Clemens --- xt/find-missing-filters.t | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xt/find-missing-filters.t b/xt/find-missing-filters.t index f9f1fd58c6..b7891e28f4 100755 --- a/xt/find-missing-filters.t +++ b/xt/find-missing-filters.t @@ -103,11 +103,6 @@ sub process_tt_content { { my $tt_block = $+{tt_block}; - if ( $tt_block =~ m{^(?\S+)\s+UNLESS\s+(?\S+)} ) - { # Specific for [% foo UNLESS bar %] - push @errors, { error => 'missing_filter', line => $line }; - } - # It's a TT directive, no filters needed next if grep { $tt_block =~ $_ } @tt_directives; @@ -121,6 +116,8 @@ sub process_tt_content { && $tt_block !~ m{=} # assignment, maybe we should require to use SET (?) && $tt_block !~ m{\|\s?ur(l|i)} # already has url or uri filter && $tt_block !~ m{\|\s?html} # already has html filter + && $tt_block !~ m{^(?\S+)\s+UNLESS\s+(?\S+)} # Specific for [% foo UNLESS bar %] + ; } } } -- 2.20.1