]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: Add some informatoin to test results.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 8 Jan 2019 10:30:28 +0000 (11:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jan 2019 10:43:35 +0000 (11:43 +0100)
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

index 80353de904f3ed4d9a2bef227bf85c94a62e7947..e648fa0ae86f4e860ff813e70787ea48b60a58ae 100755 (executable)
@@ -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