Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit acb96eb

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 71d84ef commit acb96eb

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
@@ -31,11 +31,13 @@ standard_initdb() {
3131
../../test/regress/pg_regress --config-auth "$PGDATA"
3232
}
3333

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

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

0 commit comments

Comments
 (0)