summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-04-21 14:32:35 +0000
committerGreg Sabino Mullane2009-04-21 14:32:35 +0000
commit70939e8c801a6ec401fe93f9a2eeb488d02de237 (patch)
tree684ff8db8835c076487cfccc1c78f2e7d09da425
parent415a650a7fb7c3a16998ee5fd8c9ba1c6026e192 (diff)
Allow dbname in action call, force autovac off in test database.
-rw-r--r--t/CP_Testing.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/CP_Testing.pm b/t/CP_Testing.pm
index 049934013..e387220c7 100644
--- a/t/CP_Testing.pm
+++ b/t/CP_Testing.pm
@@ -64,6 +64,7 @@ sub test_database_handle {
print $cfh qq{\n\n## check_postgres.pl testing parameters\n};
print $cfh qq{listen_addresses = ''\n};
print $cfh qq{max_connections = 10\n};
+ print $cfh qq{autovacuum = off\n};
print $cfh "\n";
close $cfh or die qq{Could not close "$cfile": $!\n};
@@ -203,8 +204,10 @@ sub run {
my $dbhost = $self->{dbhost} || die "No dbhost?";
my $dbuser = $self->{testuser} || die "No testuser?";
my $dbname = $self->{dbname} || die "No dbname?";
-
- my $com = qq{perl check_postgres.pl --action=$action --dbhost="$dbhost" --dbname=$dbname --dbuser=$dbuser};
+ my $com = qq{perl check_postgres.pl --action=$action --dbhost="$dbhost" --dbuser=$dbuser};
+ if ($extra !~ /dbname=/) {
+ $com .= " --dbname=$dbname";
+ }
if ($double) {
$com .= qq{ --dbhost2="$dbhost" --dbname2=ardala --dbuser2=$dbuser};