From ded71d5dbb0f29f02969547cdb6de13fd50497b9 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 18 Dec 2021 14:40:00 +0900 Subject: [PATCH] show test_results only when test failed --- .travis_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis_test.sh b/.travis_test.sh index f91a1f23..6e042bff 100644 --- a/.travis_test.sh +++ b/.travis_test.sh @@ -111,11 +111,11 @@ else find $pkg_path/test -iname "*.test" -print0 | xargs -0 -n1 rostest || export EXIT_STATUS=$?; fi -if [ -e build ]; then find build -name LastTest.log -exec echo "==== {} ====" \; -exec cat {} \; ; fi -if [ -e ${HOME}/.ros/test_results ]; then find ${HOME}/.ros/test_results -type f -exec echo "=== {} ===" \; -exec cat {} \; ; fi +#if [ -e build ]; then find build -name LastTest.log -exec echo "==== {} ====" \; -exec cat {} \; ; fi if [ $EXIT_STATUS == 0 ] ; then return 0 else + if [ -e ${HOME}/.ros/test_results ]; then find ${HOME}/.ros/test_results -type f -exec echo "=== {} ===" \; -exec cat {} \; ; fi exit 1 fi