summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2018-07-28 11:35:52 -0400
committerBruce Momjian <bruce@momjian.us>2018-07-28 11:35:52 -0400
commit5f2c5890e92c68163cb36b8551d45244d3280af9 (patch)
tree60b0b00802eeb1241b4f7c092e9fc9d552ee164f
parent2217fd9e97f0708972694e45c5d1f68bdf65a63b (diff)
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
-rwxr-xr-xsrc/tools/pgtest5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/pgtest b/src/tools/pgtest
index 79954940d22..b16a798470b 100755
--- a/src/tools/pgtest
+++ b/src/tools/pgtest
@@ -23,10 +23,15 @@ then PGCLEAN=clean
else shift
fi
+rm -f tmp_install/log/install.log
+
# Run "make check" and store return code in $TMP/ret.
# Display output but also capture it in $TMP/0.
($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
+# Grab possible warnings from install.log
+[ -e tmp_install/log/install.log ] && cat tmp_install/log/install.log >> $TMP/0
+
# If success, display warnings
if [ $(cat $TMP/ret) -eq 0 ]
then cat $TMP/0 |