mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Skip permissions test under MINGW/Windows
We don't support the same kind of permissions tests on Windows/MINGW, so these tests really shouldn't be getting run on that platform. Per buildfarm.
This commit is contained in:
@ -230,16 +230,23 @@ standard_initdb 'initdb'
|
|||||||
|
|
||||||
pg_upgrade $PG_UPGRADE_OPTS -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir" -p "$PGPORT" -P "$PGPORT"
|
pg_upgrade $PG_UPGRADE_OPTS -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir" -p "$PGPORT" -P "$PGPORT"
|
||||||
|
|
||||||
# make sure all directories and files have group permissions
|
# make sure all directories and files have group permissions, on Unix hosts
|
||||||
if [ $(find ${PGDATA} -type f ! -perm 640 | wc -l) -ne 0 ]; then
|
# Windows hosts don't support Unix-y permissions.
|
||||||
echo "files in PGDATA with permission != 640";
|
case $testhost in
|
||||||
exit 1;
|
MINGW*) ;;
|
||||||
fi
|
*) if [ $(find ${PGDATA} -type f ! -perm 640 | wc -l) -ne 0 ]; then
|
||||||
|
echo "files in PGDATA with permission != 640";
|
||||||
|
exit 1;
|
||||||
|
fi ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ $(find ${PGDATA} -type d ! -perm 750 | wc -l) -ne 0 ]; then
|
case $testhost in
|
||||||
echo "directories in PGDATA with permission != 750";
|
MINGW*) ;;
|
||||||
exit 1;
|
*) if [ $(find ${PGDATA} -type d ! -perm 750 | wc -l) -ne 0 ]; then
|
||||||
fi
|
echo "directories in PGDATA with permission != 750";
|
||||||
|
exit 1;
|
||||||
|
fi ;;
|
||||||
|
esac
|
||||||
|
|
||||||
pg_ctl start -l "$logdir/postmaster2.log" -o "$POSTMASTER_OPTS" -w
|
pg_ctl start -l "$logdir/postmaster2.log" -o "$POSTMASTER_OPTS" -w
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user