Output test debug logs on failure.

This commit is contained in:
Darren Tucker 2020-08-07 15:37:37 +10:00
parent eb122b1eeb
commit a09e98dcae
1 changed files with 11 additions and 0 deletions

11
.github/run_test.sh vendored
View File

@ -18,6 +18,17 @@ done
if [ -z "$LTESTS" ]; then
make $TEST_TARGET
result=$?
else
make $TEST_TARGET LTESTS="$LTESTS"
result=$?
fi
if [ "$result" -ne "0" ]; then
for i in regress/failed*; do
echo -------------------------------------------------------------------------
echo LOGFILE $i
cat $i
echo -------------------------------------------------------------------------
done
fi