summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2019-08-26 07:44:34 -0400
committerAndrew Dunstan <andrew@dunslane.net>2019-08-26 07:45:45 -0400
commit67d5af3f42b72270b0c5a2c36c1f378ab908671a (patch)
treeca753e7fd0d0b3f9585a19ddd73699ff4fa59889 /src
parent63fc3b124008fa626b9f2e57f2211b9c3fb9a4ba (diff)
Treat MINGW and MSYS the same in pg_upgrade test script
On msys2, 'uname -s' reports a string starting MSYS instead on MINGW as happens on msys1. Treat these both the same way. This reverts 608a710195a4b in favor of a more general solution. Backpatch to all live branches.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_upgrade/test.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh
index 78820247b35..34b363dce7d 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
;;