From f9a48ef79133bda21e301b8645fa10fbfc385c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 8 Jan 2019 11:30:28 +0100 Subject: [PATCH] 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. --- scripts/run-regtests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 80353de90..e648fa0ae 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