File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- 1.19.4
1+ 1.19.5
Original file line number Diff line number Diff line change 5050if [[ " ${ROS_VERSION} " == 1 ]]
5151then
5252 echo -e " \e[35m\e[1mCompile the package (catkin build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=OFF)\e[0m"
53- docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && catkin build --this --no-status -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=OFF'
53+ docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && /usr/bin/python3 "$(command -v catkin)" build --this --no-status -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=OFF'
5454else
5555 echo -e " \e[35m\e[1mCheck for default mixin repo (colcon mixin list)\e[0m"
5656 MIXIN_REPOS=$( docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}" && colcon mixin list | grep -v "^- "' | tr -d ' \r' | awk -F " : " ' {print $1}' )
Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ if [[ "${ROS_VERSION}" == 1 ]]
5050then
5151 # Build test targets
5252 echo -e " \e[35m\e[1mBuild test targets of this package (catkin build --this --no-deps -DCATKIN_ENABLE_TESTING=ON)\e[0m"
53- docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && catkin build --this --no-status --no-deps -DCATKIN_ENABLE_TESTING=ON'
53+ docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && /usr/bin/python3 "$(command -v catkin)" build --this --no-status --no-deps -DCATKIN_ENABLE_TESTING=ON'
5454
5555 # Run unit tests
5656 echo -e " \e[35m\e[1mRun tests on this package (catkin test --this --no-deps -DCATKIN_ENABLE_TESTING=ON)\e[0m"
57- docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && catkin test --this --no-status --no-deps -DCATKIN_ENABLE_TESTING=ON'
57+ docker exec -t tue-env bash -c ' source ~/.bashrc; cd "${TUE_SYSTEM_DIR}"/src/"${PACKAGE}" && /usr/bin/python3 "$(command -v catkin)" test --this --no-status --no-deps -DCATKIN_ENABLE_TESTING=ON'
5858else
5959 # Build test targets
6060 echo -e " \e[35m\e[1mBuild test targets of this package (colcon build --packages-select ${PACKAGE} --mixin rel-with-deb-info build-testing-on)\e[0m"
Original file line number Diff line number Diff line change @@ -437,12 +437,12 @@ function tue-make
437437 fi
438438 case $build_tool in
439439 ' catkin build' )
440- catkin build --workspace " $TUE_SYSTEM_DIR " " $@ "
440+ /usr/bin/python3 " $( command -v catkin) " build --workspace " $TUE_SYSTEM_DIR " " $@ "
441441 return $?
442442 ;;
443443 ' ' )
444- catkin config --init --mkdirs --workspace " $TUE_SYSTEM_DIR " --extend /opt/ros/" $TUE_ROS_DISTRO " -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=OFF
445- catkin build --workspace " $TUE_SYSTEM_DIR " " $@ "
444+ /usr/bin/python3 " $( command -v catkin) " config --init --mkdirs --workspace " $TUE_SYSTEM_DIR " --extend /opt/ros/" $TUE_ROS_DISTRO " -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_ENABLE_TESTING=OFF
445+ /usr/bin/python3 " $( command -v catkin) " build --workspace " $TUE_SYSTEM_DIR " " $@ "
446446 touch " $TUE_SYSTEM_DIR " /devel/.catkin # hack to allow overlaying to this ws while being empty
447447 ;;
448448 * )
@@ -488,7 +488,7 @@ function tue-make-test
488488 fi
489489 case ${build_tool} in
490490 ' catkin build' )
491- catkin test --workspace " ${TUE_SYSTEM_DIR} " " $@ "
491+ /usr/bin/python3 " $( command -v catkin) " test --workspace " ${TUE_SYSTEM_DIR} " " $@ "
492492 return $?
493493 ;;
494494 ' ' )
@@ -547,7 +547,7 @@ function tue-make-test-result
547547 fi
548548 case $build_tool in
549549 ' catkin build' )
550- catkin test_results " ${TUE_SYSTEM_DIR} " /build " $@ "
550+ python3 " $( command -v catkin) " test_results " ${TUE_SYSTEM_DIR} " /build " $@ "
551551 return $?
552552 ;;
553553 ' ' )
You can’t perform that action at this time.
0 commit comments