From 76024b2425216fea94bca3b09976eb85d26ebf54 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 22 Apr 2020 15:47:16 +0200 Subject: 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 --- t/helper.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1