Skip to content

Commit

Permalink
Ignore exit code of colcon-test (#48)
Browse files Browse the repository at this point in the history
* Ignore exit code of colcon-test in ros1_build

* Ignore exit code of colcon-test in ros2_build
  • Loading branch information
AAlon authored Aug 29, 2019
1 parent 0f7a7d3 commit 87cb0d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ros1_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions ros2_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87cb0d7

Please sign in to comment.