Skip to content

Commit

Permalink
show test_results only when test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 18, 2021
1 parent 706ca2c commit ded71d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ded71d5

Please sign in to comment.