From: Frédéric Lécaille Date: Tue, 8 Jan 2019 10:30:28 +0000 (+0100) Subject: REGTEST: Add some informatoin to test results. X-Git-Tag: v2.0-dev1~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a48ef79133bda21e301b8645fa10fbfc385c6f;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 80353de904..e648fa0ae8 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -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