[boxer] 02/07: Fix testsuite to gracefully handle executable reclass unavailable.

Jonas Smedegaard dr at jones.dk
Sun Nov 5 20:47:11 UTC 2017


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

js pushed a commit to annotated tag debian/1.1.6-1
in repository boxer.

commit 8ab384e415c3dd3149162cce14546c604ded4100
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Nov 5 15:32:42 2017 +0100

    Fix testsuite to gracefully handle executable reclass unavailable.
---
 meta/makefile.pret | 1 +
 t/world.t          | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/meta/makefile.pret b/meta/makefile.pret
index ec385f6..0803920 100644
--- a/meta/makefile.pret
+++ b/meta/makefile.pret
@@ -27,6 +27,7 @@
 	:test-requirement     [ :on "Test::More 0.61"^^:CpanId ];
 	:test-requirement     [ :on "English 0"^^:CpanId ];
 	:test-requirement     [ :on "File::Spec 0"^^:CpanId ];
+	:test-requirement     [ :on "File::Which 0"^^:CpanId ];
 	:test-requirement     [ :on "Test::Compile 0"^^:CpanId ];
 	:test-requirement     [ :on "Test::Exception 0"^^:CpanId ];
 	:test-requirement     [ :on "Test::File::Contents 0"^^:CpanId ];
diff --git a/t/world.t b/t/world.t
index 2b029dc..cbf3432 100644
--- a/t/world.t
+++ b/t/world.t
@@ -8,8 +8,11 @@ use strictures 2;
 use Test::More;
 use Test::Exception;
 use Test::File::Contents;
+use File::Which;
 use Path::Tiny;
 
+plan skip_all => 'reclass executable required' unless which('reclass');
+
 use_ok('Boxer::Part::Reclass');
 use_ok('Boxer::World::Reclass');
 use_ok('Boxer::Task::Classify');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/boxer.git



More information about the Pkg-perl-cvs-commits mailing list