Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix pg_upgrade test on Cygwin
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 26 Apr 2021 10:10:46 +0000 (12:10 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 26 Apr 2021 10:10:46 +0000 (12:10 +0200)
The verification of permissions doesn't succeed on Cygwin, because the
required feature is not implemented for Cygwin at the moment.  So skip
this part of the test, like MinGW already does.

src/bin/pg_upgrade/test.sh

index 9c6deae294a7d37d78ad1b79b48726685d7d440a..1ba326decdd05485239e2fdab985aaaa11a18b81 100644 (file)
@@ -232,7 +232,7 @@ pg_upgrade $PG_UPGRADE_OPTS -d "${PGDATA}.old" -D "$PGDATA" -b "$oldbindir" -p "
 # make sure all directories and files have group permissions, on Unix hosts
 # Windows hosts don't support Unix-y permissions.
 case $testhost in
-   MINGW*) ;;
+   MINGW*|CYGWIN*) ;;
    *)  if [ `find "$PGDATA" -type f ! -perm 640 | wc -l` -ne 0 ]; then
            echo "files in PGDATA with permission != 640";
            exit 1;
@@ -240,7 +240,7 @@ case $testhost in
 esac
 
 case $testhost in
-   MINGW*) ;;
+   MINGW*|CYGWIN*) ;;
    *)  if [ `find "$PGDATA" -type d ! -perm 750 | wc -l` -ne 0 ]; then
            echo "directories in PGDATA with permission != 750";
            exit 1;