Skip to content

Commit

Permalink
do not expect a specific path to catkin
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke authored and 130s committed Oct 2, 2017
1 parent 3ff69fc commit 9239771
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions industrial_ci/src/tests/source_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ ROSWS=wstool
ici_time_end # init_ici_environment

function catkin {
PATH_CATKIN=/usr/bin/catkin
PKG_CATKIN=python-catkin-tools
local path
path=$(which catkin) || error "catkin not available. Make sure python-catkin-tools is installed. See also https://github.com/ros-industrial/industrial_ci/issues/216"
local cmd=$1
shift
if [ ! -f ${PATH_CATKIN} ]; then
echo "[ERR] ${PATH_CATKIN} not available. Make sure ${PKG_CATKIN} is installed. See also https://github.com/ros-industrial/industrial_ci/issues/216";
fi
/usr/bin/catkin "$cmd" -w "$CATKIN_WORKSPACE" "$@"
"$path" "$cmd" -w "$CATKIN_WORKSPACE" "$@"
}

ici_time_start setup_apt
Expand Down

0 comments on commit 9239771

Please sign in to comment.