]> granicus.if.org Git - pgbouncer/commitdiff
Add some debugging for failed tests
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Aug 2019 08:00:12 +0000 (10:00 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Aug 2019 12:05:17 +0000 (14:05 +0200)
Print the log file of the failed test if the test fails.  This helps
analyzing failures when run in a CI environment.

test/test.sh

index a61c9ed7776503a03d01c7e778ce40bc5a4de42d..5ed8aca4c500065c88154257a5ce34c348572528 100755 (executable)
@@ -174,6 +174,7 @@ runtest() {
                echo "skipped"
        else
                echo "FAILED"
+               cat $LOGDIR/$1.log | sed 's/^/# /'
        fi
        date >> $LOGDIR/$1.log