From 8aff192b6016c285dd2208cdb55faea9fd7dbc23 Mon Sep 17 00:00:00 2001 From: AAlon Date: Thu, 29 Aug 2019 14:04:56 -0700 Subject: [PATCH 1/2] Ignore exit code of colcon-test in ros1_build --- ros1_build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ros1_build.sh b/ros1_build.sh index 21cc7a4..754b354 100755 --- a/ros1_build.sh +++ b/ros1_build.sh @@ -40,10 +40,12 @@ if [ -z "${NO_TEST}" ]; then if [ "${TRAVIS_BRANCH}" == "master" ] && [ -d "./dep" ]; then touch dep/COLCON_IGNORE fi - + + set +e colcon test + set -e colcon test-result --all --verbose - + # get unit test code coverage result case ${PACKAGE_LANG} in "cpp") From 89561a2907259a6698ce72600e47b3e600b61a9a Mon Sep 17 00:00:00 2001 From: AAlon Date: Thu, 29 Aug 2019 14:09:56 -0700 Subject: [PATCH 2/2] Ignore exit code of colcon-test in ros2_build --- ros2_build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ros2_build.sh b/ros2_build.sh index fd16ea4..a7f0256 100755 --- a/ros2_build.sh +++ b/ros2_build.sh @@ -33,7 +33,10 @@ if [ -z "${NO_TEST}" ]; then if [ "${TRAVIS_BRANCH}" == "master" ] && [ -d "./dep" ]; then touch dep/COLCON_IGNORE fi + + set +e colcon test + set -e colcon test-result --all --verbose # get unit test code coverage result