Skip to content

Commit 202a413

Browse files
author
Matthew Fisher
committed
feat(contrib): expose which files were found in backup dir
1 parent 11c3830 commit 202a413

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

contrib/ci/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ docker exec $PG_JOB is_running
7575

7676
# check if minio has the 5 backups
7777
puts-step "checking if minio has 5 backups"
78-
NUM_BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep json | wc -l)"
78+
BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep json)"
79+
NUM_BACKUPS="$(docker exec $MINIO_JOB ls /home/minio/dbwal/basebackups_005/ | grep -c json)"
7980
if [[ ! "$NUM_BACKUPS" -eq "5" ]]; then
8081
puts-error "did not find 5 base backups, which is the default (found $NUM_BACKUPS)"
82+
puts-error "$BACKUPS"
8183
exit 1
8284
fi
8385

0 commit comments

Comments
 (0)