diff options
author | Chris Williams <chris@bingosnet.co.uk> | 2010-04-14 11:44:41 +0100 |
---|---|---|
committer | Chris Williams <chris@bingosnet.co.uk> | 2010-04-14 11:44:41 +0100 |
commit | 983cf2d83de228bc3435cafbd5a0a6171f3eaa85 (patch) | |
tree | f27a187f0131c43bc39cc45abe344c70e94cfb59 /cpan/CPANPLUS-Dist-Build | |
parent | a3738a1246b1e2ad3a979c133fd7b3ded7f54fb2 (diff) | |
download | perl-983cf2d83de228bc3435cafbd5a0a6171f3eaa85.tar.gz |
Changes to CPANPLUS and CPANPLUS::Dist::Build tests
Add the utils/ dir to $ENV{PATH} if running under PERL_CORE for the
CPANPLUS/CPANPLUS-Dist-Build tests.
Both modules' testsuites require access to the cpanp-run-perl script
and the version in utils/ is already executable versus the version
in cpan/CPANPLUS/bin
Diffstat (limited to 'cpan/CPANPLUS-Dist-Build')
-rw-r--r-- | cpan/CPANPLUS-Dist-Build/t/inc/conf.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpan/CPANPLUS-Dist-Build/t/inc/conf.pl b/cpan/CPANPLUS-Dist-Build/t/inc/conf.pl index a104eb91de..506b3ed6eb 100644 --- a/cpan/CPANPLUS-Dist-Build/t/inc/conf.pl +++ b/cpan/CPANPLUS-Dist-Build/t/inc/conf.pl @@ -29,11 +29,10 @@ BEGIN { ### add CPANPLUS' bin dir to the front of $ENV{PATH}, so that cpanp-run-perl ### and friends get picked up, only under PERL_CORE though. + $old_env_path = $ENV{PATH}; if ( $ENV{PERL_CORE} ) { - $old_env_path = $ENV{PATH}; $ENV{'PATH'} = join $Config{'path_sep'}, - grep { defined } "$FindBin::Bin/../../CPANPLUS/bin", $ENV{'PATH'}; - + grep { defined } "$FindBin::Bin/../../../utils", $ENV{'PATH'}; } ### Fix up the path to perl, as we're about to chdir |