projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow setting DZIL_TEST_INC env var when running dzil test
[gitmo/Moose.git]
/
inc
/
MakeMaker.pm
diff --git
a/inc/MakeMaker.pm
b/inc/MakeMaker.pm
index
254b97e
..
4c5f55d
100644
(file)
--- a/
inc/MakeMaker.pm
+++ b/
inc/MakeMaker.pm
@@
-27,4
+27,13
@@
override _build_WriteMakefile_args => sub {
};
};
+override test => sub {
+ my $self = shift;
+
+ local $ENV{PERL5LIB} = join ':',
+ grep {defined} @ENV{ 'PERL5LIB', 'DZIL_TEST_INC' };
+
+ super();
+};
+
1;