summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/helper.pm')
-rw-r--r--t/helper.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm
index 947cdeaa..451311d9 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -10,11 +10,16 @@ our @EXPORT = qw(need_root_and_prepare need_downloader
urpmi_addmedia urpmi_removemedia urpmi_update
urpm_cmd run_urpm_cmd urpmi_cmd urpmi urpmi_partial test_urpmi_fail urpme
urpmi_cfg set_urpmi_cfg_global_options
- system_ system_should_fail
+ set_path system_ system_should_fail
check_installed_fullnames check_installed_names check_nothing_installed
check_installed_and_remove check_installed_fullnames_and_remove check_installed_and_urpme
);
+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";
+}
+
my $using_root;
sub need_root_and_prepare() {
if ($< != 0) {