This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 169c4ea Backport improved logging of test failures
169c4ea is described below
commit 169c4ea8603656316ae249c03cdba874f0c0b995
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 24 10:37:54 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: [email protected]
For additional commands, e-mail: [email protected]