summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2021-04-26 10:10:46 +0000
committerPeter Eisentraut2021-04-26 10:10:46 +0000
commit38c9a5938ac5e1409b42677fee970a12632852ee (patch)
tree1d52ee506a14b7b67ec42283c6fead49355b19d8
parent2ecfeda3e916f2a1123f818018d9d35908a499ac (diff)
Fix pg_upgrade test on Cygwin
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.
-rw-r--r--src/bin/pg_upgrade/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_upgrade/test.sh b/src/bin/pg_upgrade/test.sh
index 9c6deae294a..1ba326decdd 100644
--- a/src/bin/pg_upgrade/test.sh
+++ b/src/bin/pg_upgrade/test.sh
@@ -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;