This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 0dc4a2e Backport improved logging of test failures 0dc4a2e is described below commit 0dc4a2e482275901bf89773e18bc0c6830388868 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Aug 24 10:37:34 2020 +0100 Backport improved logging of test failures --- .travis/antTest.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis/antTest.sh b/.travis/antTest.sh index 22ce104..0e266e6 100755 --- a/.travis/antTest.sh +++ b/.travis/antTest.sh @@ -21,3 +21,14 @@ # much logging on stdout ant -q test 2>&1 > ant-test.log +RC=$? +{ + if grep -q "Testsuites with failed tests:" ant-test.log; then + for failed in $(awk 'failed == 1 { print $2 }; /Testsuites with failed tests:/ { failed=1 }' ant-test.log); do + echo "Failed test: $failed" + cat output/build/logs/$failed + echo + done + fi +} > test-failures.log +exit $RC --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org