diff --git a/lib/Dist/Zilla/Tester.pm b/lib/Dist/Zilla/Tester.pm index 982aa23c3..edff8d01c 100644 --- a/lib/Dist/Zilla/Tester.pm +++ b/lib/Dist/Zilla/Tester.pm @@ -162,7 +162,7 @@ sub minter { 'Dist::Zilla::Tester::_Minter' } local $ENV{DZIL_GLOBAL_CONFIG_ROOT}; $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root} - if defined $ENV{DZIL_GLOBAL_CONFIG_ROOT}; + if defined $tester_arg->{global_config_root}; my $zilla = $self->$orig($arg); @@ -276,9 +276,7 @@ sub minter { 'Dist::Zilla::Tester::_Minter' } my $global_config_root = Path::Class::dir($tester_arg->{global_config_root})->absolute; - local $ENV{DZIL_GLOBAL_CONFIG_ROOT}; - $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root} - if defined $ENV{DZIL_GLOBAL_CONFIG_ROOT}; + local $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $global_config_root; my $global_stashes = $self->_setup_global_config( $global_config_root,