[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: t: Skip critic test with older Perl::Tidy



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 98b0d446a61137619742815e1d653f64bb26fef1
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Mar 23 12:56:52 2014 +0100

    t: Skip critic test with older Perl::Tidy
    
    Optimially, we would just skip the perltidy part of the test, but I
    cannot figure out how to do that without making it ignore our
    perlcriticrc file.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/scripts/01-critic/runner.pl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/t/scripts/01-critic/runner.pl b/t/scripts/01-critic/runner.pl
index 1eb50dc..86f2c26 100755
--- a/t/scripts/01-critic/runner.pl
+++ b/t/scripts/01-critic/runner.pl
@@ -23,6 +23,11 @@ plan skip_all => 'Only UNRELEASED versions are criticised'
 eval 'use Test::Perl::Critic 1.00';
 plan skip_all => 'Test::Perl::Critic 1.00 required to run this test' if $@;
 
+eval 'use Perl::Tidy 20130922';
+# Actually we could just disable the perltidy check, but I am not
+# sure how to do that without making it ignore our perlcriticrc file.
+plan skip_all => 'Perl::Tidy 20130922 required to run this test' if $@;
+
 eval 'use PPIx::Regexp';
 diag('libppix-regexp-perl is needed to enable some checks') if $@;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: