[DBD::Pg] Further fix needed to get PGINITDB to work in the tests.
dbdpg-commits-gENoVmVU/[email protected] Mon, 19 May 2014 15:43:44 +0000
| Newsgroups | gmane.comp.db.postgresql.dbdpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by Nicholas Clark <[email protected]> Further fix needed to get PGINITDB to work in the tests. --- t/dbdpg_test_setup.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/dbdpg_test_setup.pl b/t/dbdpg_test_setup.pl index 899a313..6bae63c 100644 --- a/t/dbdpg_test_setup.pl +++ b/t/dbdpg_test_setup.pl @@ -722,6 +722,8 @@ sub get_test_settings { my $pg_ctl = 'pg_ctl'; if (exists $ENV{DBDPG_INITDB} and -e $ENV{DBDPG_INITDB}) { ($pg_ctl = $ENV{DBDPG_INITDB}) =~ s/initdb/pg_ctl/; + } elsif (exists $ENV{PGINITDB} and -e $ENV{PGINITDB}) { + ($pg_ctl = $ENV{PGINITDB}) =~ s/initdb/pg_ctl/; } my ($testdsn, $testuser, $testdir, $error) = ('','','','?'); my ($helpconnect, $su, $uid, $initdb, $version) = (0,'','','default',0); -- 1.8.4