diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index 7e44747e39d..c9de4f8a7e0 100644 --- a/src/bin/pg_upgrade/test.sh +++ b/src/bin/pg_upgrade/test.sh @@ -31,11 +31,13 @@ standard_initdb() { ../../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 ;;