From 07bb65b133a26b20e2c17e844709783c7459f117 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 8 Feb 2014 16:08:37 -0800 Subject: [PATCH] ensure that ~/.dzil is never used when testing builds too --- lib/Dist/Zilla/Tester.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Dist/Zilla/Tester.pm b/lib/Dist/Zilla/Tester.pm index 4751d0ffc..884ed6ed1 100644 --- a/lib/Dist/Zilla/Tester.pm +++ b/lib/Dist/Zilla/Tester.pm @@ -134,6 +134,8 @@ sub minter { 'Dist::Zilla::Tester::_Minter' } local @INC = map {; ref($_) ? $_ : File::Spec->rel2abs($_) } @INC; + local $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root}; + my $zilla = $self->$orig($arg); $zilla->_set_tempdir($tempdir);