fix: remove hardcoded ROS shell paths

This commit is contained in:
2026-07-30 19:48:35 +08:00
parent 8de4e20046
commit d03cefb07c
7 changed files with 40 additions and 24 deletions

View File

@@ -17,10 +17,10 @@ rsync -a \
--exclude 'models/en_zh-Hans/' \
"${root}/" "${fixture}/"
# shellcheck disable=SC1091
set +u
source /opt/ros/humble/setup.bash
set -u
if [[ "${ROS_DISTRO:-}" != "humble" ]]; then
echo "ROS2 Humble environment must be sourced before running this test" >&2
exit 1
fi
if missing_output=$(cmake -S "${fixture}" -B "${fixture}/build-missing" 2>&1); then
echo "CMake unexpectedly configured without prepared runtime files" >&2