You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fs...@apache.org on 2020/06/18 17:43:19 UTC
[tomcat] branch master updated: Try to print out more information
forx failed tests in travis
This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 14053be Try to print out more information forx failed tests in travis
14053be is described below
commit 14053be4e6863afffbbc7b01d5098565034f289e
Author: Felix Schumacher <fs...@apache.org>
AuthorDate: Thu Jun 18 19:42:55 2020 +0200
Try to print out more information forx failed tests in travis
---
.travis.yml | 1 +
.travis/antTest.sh | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index 2ae1a0d..3d9cecd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -81,6 +81,7 @@ script:
after_failure:
- tail -n 5000 ant-test.log
+ - tail -n 5000 test-failures.log
- ls -laR $HOME/tomcat-build-libs
notifications:
diff --git a/.travis/antTest.sh b/.travis/antTest.sh
index 22ce104..cc40bad 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:"; 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org