summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a3738a1)
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
### 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.
### 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};
- $old_env_path = $ENV{PATH};
$ENV{'PATH'} = join $Config{'path_sep'},
$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
}
### Fix up the path to perl, as we're about to chdir
### add our own path to the front of $ENV{PATH}, so that cpanp-run-perl
### and friends get picked up
$old_env_path = $ENV{PATH};
### add our own path to the front of $ENV{PATH}, so that cpanp-run-perl
### and friends get picked up
$old_env_path = $ENV{PATH};
- $ENV{'PATH'} = join $Config{'path_sep'},
+ if ( $ENV{PERL_CORE} ) {
+ $ENV{'PATH'} = join $Config{'path_sep'},
+ grep { defined } "$FindBin::Bin/../../../utils", $ENV{'PATH'};
+ }
+ else {
+ $ENV{'PATH'} = join $Config{'path_sep'},
grep { defined } "$FindBin::Bin/../bin", $ENV{'PATH'};
grep { defined } "$FindBin::Bin/../bin", $ENV{'PATH'};
### Fix up the path to perl, as we're about to chdir
### but only under perlcore, or if the path contains delimiters,
### Fix up the path to perl, as we're about to chdir
### but only under perlcore, or if the path contains delimiters,