diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-04-22 15:47:16 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-04-28 21:05:34 +0200 |
commit | 76024b2425216fea94bca3b09976eb85d26ebf54 (patch) | |
tree | 591a27378ee24dafd53788a5d6709a94baa21f5c /t | |
parent | ea9614b6fbf55a4b4dd1d342f09b7f96f3736310 (diff) | |
download | urpmi-76024b2425216fea94bca3b09976eb85d26ebf54.tar urpmi-76024b2425216fea94bca3b09976eb85d26ebf54.tar.gz urpmi-76024b2425216fea94bca3b09976eb85d26ebf54.tar.bz2 urpmi-76024b2425216fea94bca3b09976eb85d26ebf54.tar.xz urpmi-76024b2425216fea94bca3b09976eb85d26ebf54.zip |
Also look at $Config{bin} for genhdlist2
It should help
http://www.cpantesters.org/cpan/report/9e067a66-83f1-11ea-85a9-af7f1f24ea8f
which fails.
That smoker had rpmtools/URPM already installed normally into this
perl's sitedir & bindir.
Adding the blib/script directories didn't help that case.
So try $Config{bin} too
Diffstat (limited to 't')
-rw-r--r-- | t/helper.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index 55dc8f81..a97fb2f8 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -1,6 +1,7 @@ package helper; use Test::More; +use Config; use urpm::select; use urpm::util; use base 'Exporter'; @@ -17,7 +18,7 @@ our @EXPORT = qw(need_root_and_prepare need_downloader sub set_path() { # help CPAN testers who installed genhdlist2 using cpan but do not have /usr/local/bin in their PATH: - $ENV{PATH} .= ":/usr/local/bin"; + $ENV{PATH} .= ":/usr/local/bin:$Config{bin}"; # help when CPAN testers have not genhdlist2 installed but do have built rpmtools: $ENV{PATH} .= join(':', uniq(map { |