diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | t/helper.pm | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,7 @@ o describe more tests to help pinpoint regressions o fix test with rpm < 4.13 on CentOS7 o perform some file conflict tests only on Mageia + o try harder to find genhdlist2 in uninstalled CPAN modules Version 8.121 - 8 April 2020 diff --git a/t/helper.pm b/t/helper.pm index 451311d9..55dc8f81 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -18,6 +18,12 @@ 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"; + + # help when CPAN testers have not genhdlist2 installed but do have built rpmtools: + $ENV{PATH} .= join(':', uniq(map { + my $blib_script = dirname($_) . "/script"; + -d $blib_script ? $blib_script : (); + } split(':', $ENV{PERL5LIB}))); } my $using_root; |