Skip to content

Commit

Permalink
Enable the one shot tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 3, 2024
1 parent f68f9a9 commit 0e8a2f1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ test_run() {
# Run the PostgreSQL container in one shot mode
TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml run --rm -e PGAUTO_ONESHOT=yes postgres

# # Verify the PostgreSQL data files are now the target version
# PGVER=$(sudo cat postgres-data/PG_VERSION)
# if [ "$PGVER" != "${TARGET}" ]; then
# banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} FAILED!"
# FAILURE=1
# else
# banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} SUCCEEDED!"
# fi
# Verify the PostgreSQL data files are now the target version
PGVER=$(sudo cat postgres-data/PG_VERSION)
if [ "$PGVER" != "${TARGET}" ]; then
banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} FAILED!"
FAILURE=1
else
banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} SUCCEEDED!"
fi

# Shut down any containers that are still running
docker compose -f docker-compose-pgauto.yml down
Expand Down

0 comments on commit 0e8a2f1

Please sign in to comment.