Skip to content

Commit fe25526

Browse files
committed
pgtest: grab possible warnings from install.log
Since PG 9.5, 'make check' records the build output in install.log, so look in there for warnings too. Backpatch-through: 9.5
1 parent ff8ce0b commit fe25526

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/pgtest

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ then PGCLEAN=clean
2323
else shift
2424
fi
2525

26+
rm -f tmp_install/log/install.log
27+
2628
# Run "make check" and store return code in $TMP/ret.
2729
# Display output but also capture it in $TMP/0.
2830
($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
2931

32+
# Grab possible warnings from install.log
33+
[ -e tmp_install/log/install.log ] && cat tmp_install/log/install.log >> $TMP/0
34+
3035
# If success, display warnings
3136
if [ $(cat $TMP/ret) -eq 0 ]
3237
then cat $TMP/0 |

0 commit comments

Comments
 (0)