summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2012-11-30 10:54:46 -0500
committerAndrew Dunstan <andrew@dunslane.net>2012-11-30 10:54:46 -0500
commit2c55189b2b9e71a14bba1496da6be84614595983 (patch)
treef199fdc60eb6a4e26c1ef23b72d2610dc57d57d3
parenta8e60f0b23fa263c9c451cbb6d36f0bc9c196610 (diff)
Clean environment for pg_upgrade test.
This removes exisiting PG settings from the environment for pg_upgrade tests, just like pg_regress does.
-rw-r--r--contrib/pg_upgrade/test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh
index ffa5a089150..e9d159e5e80 100644
--- a/contrib/pg_upgrade/test.sh
+++ b/contrib/pg_upgrade/test.sh
@@ -58,6 +58,15 @@ PGDATA=$temp_root/data
export PGDATA
rm -rf "$PGDATA" "$PGDATA".old
+unset PGDATABASE
+unset PGUSER
+unset PGSERVICE
+unset PGSSLMODE
+unset PGREQUIRESSL
+unset PGCONNECT_TIMEOUT
+unset PGHOST
+unset PGHOSTADDR
+
logdir=$PWD/log
rm -rf "$logdir"
mkdir "$logdir"