summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/helper.pm')
-rw-r--r--t/helper.pm6
1 files changed, 6 insertions, 0 deletions
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;