Skip to content

Commit

Permalink
Fix a test fail if start-up psqlrc file exists (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecaat authored May 31, 2021
1 parent ec0c350 commit 115e9be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ jobs:
LOGFILE=~/make.log
grep -C 1 warning $LOGFILE || exit 0 # ok if warning doesn't exists (= status code is 1)
- name: make a .psqlrc file because there is a possibility that make installcheck may fail
shell: bash -xe {0}
run: echo '\\timing' > ~/.psqlrc

- name: make installcheck
shell: bash -xe {0}
run: |
Expand Down
4 changes: 2 additions & 2 deletions sql/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ echo '###### Make sure that pg_rman does not take a differential backup, but a i
init_catalog
pg_rman backup -B ${BACKUP_PATH} -b full -p ${TEST_PGPORT} -d postgres --quiet;echo $?
pg_rman validate -B ${BACKUP_PATH} --quiet
psql -p ${TEST_PGPORT} -d postgres -c 'create table test (c1 int);'
psql -p ${TEST_PGPORT} -d postgres -c 'insert into test values(generate_series(1,1000000));'
psql --no-psqlrc -p ${TEST_PGPORT} -d postgres -c 'create table test (c1 int);'
psql --no-psqlrc -p ${TEST_PGPORT} -d postgres -c 'insert into test values(generate_series(1,1000000));'
pg_rman backup -B ${BACKUP_PATH} -b incremental -p ${TEST_PGPORT} -d postgres --quiet;echo $?
pg_rman validate -B ${BACKUP_PATH} --quiet
pg_rman backup -B ${BACKUP_PATH} -b incremental -p ${TEST_PGPORT} -d postgres --quiet;echo $?
Expand Down

0 comments on commit 115e9be

Please sign in to comment.