aboutsummaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pg_upgrade/test.sh')
-rw-r--r--contrib/pg_upgrade/test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh
index 41355cf5fdc..32a11b093b1 100644
--- a/contrib/pg_upgrade/test.sh
+++ b/contrib/pg_upgrade/test.sh
@@ -47,8 +47,9 @@ if [ "$1" = '--install' ]; then
# We need to make it use psql from our temporary installation,
# because otherwise the installcheck run below would try to
# use psql from the proper installation directory, which might
- # be outdated or missing.
- EXTRA_REGRESS_OPTS=--psqldir=$bindir
+ # be outdated or missing. But don't override anything else that's
+ # already in EXTRA_REGRESS_OPTS.
+ EXTRA_REGRESS_OPTS="$EXTRA_REGRESS_OPTS --psqldir=$bindir"
export EXTRA_REGRESS_OPTS
fi