REGTEST: Add some informatoin to test results.

When the reg tests fail, it may be useful to display additional information
coming from varnishtest, especially when this latter aborts.
In such case, the test output may be made of lines prefixed by "*     diag"
string.
This commit is contained in:
Frédéric Lécaille 2019-01-08 11:30:28 +01:00 committed by Christopher Faulet
parent 839791af0d
commit f9a48ef791

View File

@ -454,7 +454,7 @@ if [ -d "${TESTDIR}" ]; then
cat <<- EOF | tee -a "$TESTDIR/failedtests.log"
$(echo "###### $(cat "$i/INFO") ######")
$(echo "## test results in: \"$i\"")
$(grep -- ^---- "$i/LOG")
$(grep -E -- "^(----|\* diag)" "$i/LOG")
EOF
done' sh {} +
fi