diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh index c454c1ca72e..426fc3fc8e1 100644 --- a/contrib/pg_upgrade/test.sh +++ b/contrib/pg_upgrade/test.sh @@ -29,11 +29,13 @@ standard_initdb() { ../../src/test/regress/pg_regress --config-auth "$PGDATA" } -# Establish how the server will listen for connections -testhost=`uname -s` +# What flavor of host are we on? +# Treat MINGW* (msys1) and MSYS* (msys2) the same. +testhost=`uname -s | sed s/^MSYS/MINGW/` +# Establish how the server will listen for connections case $testhost in - MINGW*|MSYS*) + MINGW*) LISTEN_ADDRESSES="localhost" PGHOST=localhost ;;