postgres.git / summary / log / commit / refs

commit    3a1417c4265b93d7fdfcdbcb9c9fc18cbbff3b5b
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Mon Aug 26 11:44:34 2019 +0000
First released in: 13.0, 9.4.25, 9.5.20, 9.6.16, 10.11, 11.6, 12.0

    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.


src/bin/pg_upgrade/test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh index e65f3d04efa..997a7122fa7 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 ;; [parent: 5d76c8037329]