[libdist-zilla-plugin-test-eol-perl] 01/01: t/eol.t: when running under adt-run, test installed module files instead of the ones that can't be found in the minimal testing source tree.
Intrigeri
intrigeri at moszumanska.debian.org
Sun Aug 16 09:19:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch patch-queue/master
in repository libdist-zilla-plugin-test-eol-perl.
commit ffbd996bf8b7cce4c557a32832e5dff5d012267a
Author: intrigeri <intrigeri at boum.org>
Date: Sun Aug 16 09:10:01 2015 +0000
t/eol.t: when running under adt-run, test installed module files instead of the ones that can't be found in the minimal testing source tree.
---
t/eol.t | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/t/eol.t b/t/eol.t
index 6e227a8..6bbd587 100644
--- a/t/eol.t
+++ b/t/eol.t
@@ -7,8 +7,6 @@ use Test::More 0.88;
use Test::EOL;
my @files = (
- 'lib/Dist/Zilla/Plugin/EOLTests.pm',
- 'lib/Dist/Zilla/Plugin/Test/EOL.pm',
't/00-report-prereqs.dd',
't/00-report-prereqs.t',
't/01-basic.t',
@@ -19,5 +17,12 @@ my @files = (
't/zzz-check-breaks.t'
);
+my $prefix = $ENV{ADTTMP} ? '/usr/share/perl5' : 'lib';
+
+unshift @files, (
+ "${prefix}/Dist/Zilla/Plugin/EOLTests.pm",
+ "${prefix}/Dist/Zilla/Plugin/Test/EOL.pm",
+);
+
eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
done_testing;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git
More information about the Pkg-perl-cvs-commits
mailing list