Skip to content

Commit 36e85d8

Browse files
author
Alexander Korotkov
committed
Stop cluster before looking for test results.
1 parent 60c696e commit 36e85d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: travis/pg-travis-test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ fi
119119
# run regression tests
120120
PGPORT=55435 PGUSER=$USER PG_CONFIG=$config_path make installcheck USE_PGXS=1 || status=$?
121121

122+
# stop cluster
123+
$pg_ctl_path -D $CLUSTER_PATH stop -l postgres.log -w
124+
122125
# show diff if it exists
123126
if test -f regression.diffs; then cat regression.diffs; fi
124127

@@ -140,9 +143,6 @@ for corefile in $(find /tmp/ -name '*.core' 2>/dev/null) ; do
140143
gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" $binary $corefile
141144
done
142145

143-
# stop cluster
144-
$pg_ctl_path -D $CLUSTER_PATH stop -l postgres.log -w
145-
146146
#generate *.gcov files
147147
if [ $CHECK_TYPE == "valgrind" ] && [ $CC = "clang" ]; then
148148
bash <(curl -s https://codecov.io/bash) -x "llvm-cov gcov"

0 commit comments

Comments
 (0)