diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-04-28 19:54:51 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-04-29 16:16:24 +0200 |
commit | d30cf769e7cddd57d6042953b1f85079e3fbb60a (patch) | |
tree | c3c1c89f493762d450b1484a5bd262dae2c26714 /t/helper.pm | |
parent | 44c6a113c02ec00dca037c15fac370207afb60a5 (diff) | |
download | urpmi-d30cf769e7cddd57d6042953b1f85079e3fbb60a.tar urpmi-d30cf769e7cddd57d6042953b1f85079e3fbb60a.tar.gz urpmi-d30cf769e7cddd57d6042953b1f85079e3fbb60a.tar.bz2 urpmi-d30cf769e7cddd57d6042953b1f85079e3fbb60a.tar.xz urpmi-d30cf769e7cddd57d6042953b1f85079e3fbb60a.zip |
cpan_testers: fallback to bundled genhdlist2
we could have done it for all tests directly from within t/helper.pm,
but only those tests actually need to find genhdlist2
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/helper.pm b/t/helper.pm index c06d1202..950c3c65 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -1,6 +1,7 @@ package helper; use Test::More; +use Cwd 'getcwd'; use Config; use urpm::select; use urpm::util; @@ -25,6 +26,9 @@ sub set_path() { my $blib_script = dirname($_) . "/script"; -d $blib_script ? $blib_script : (); } split(':', $ENV{PERL5LIB}))); + + # Fallback to bundled genhdlist2/gendistrib if not installed: + $ENV{PATH} .= ':' . getcwd(); } my $using_root; |