diff options
author | Andrew Dunstan | 2012-11-30 12:54:24 +0000 |
---|---|---|
committer | Andrew Dunstan | 2012-11-30 12:54:24 +0000 |
commit | abece8af179f18af3b877220d83f743127ee1aa6 (patch) | |
tree | b6bc1c1a26a48a7845bd666ab9d58e713363e0d8 | |
parent | 65c3bf19fd3e1f6a591618e92eb4c54d0b217564 (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.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh index 99bd1e2505e..fc34aa6f749 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" |