Skip to content

Commit 01c5ef9

Browse files
committed
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 608a710 in favor of a more general solution. Backpatch to all live branches.
1 parent 4fca146 commit 01c5ef9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/pg_upgrade/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ standard_initdb() {
2929
../../test/regress/pg_regress --config-auth "$PGDATA"
3030
}
3131

32-
# Establish how the server will listen for connections
33-
testhost=`uname -s`
32+
# What flavor of host are we on?
33+
# Treat MINGW* (msys1) and MSYS* (msys2) the same.
34+
testhost=`uname -s | sed s/^MSYS/MINGW/`
3435

36+
# Establish how the server will listen for connections
3537
case $testhost in
36-
MINGW*|MSYS*)
38+
MINGW*)
3739
LISTEN_ADDRESSES="localhost"
3840
PGHOST=localhost
3941
;;

0 commit comments

Comments
 (0)