Skip to content

Commit

Permalink
Translate file names from target workspace to target repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Nov 3, 2022
1 parent f69e5fa commit 9ee43e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions industrial_ci/src/tests/source_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ function run_clang_tidy_check {
fi
done < <(find "$target_ws/build" -mindepth 2 -name compile_commands.json) # -mindepth 2, because colcon puts a compile_commands.json into the build folder

if [ -n "${fixes_final}" ]; then
# translate file names in fixes file
sed -i "s#$target_ws/src/$TARGET_REPO_NAME/#$TARGET_REPO_PATH/#g" "${fixes_final}"
fi
ici_hook "after_clang_tidy_checks"

if [ "${#warnings[@]}" -gt "0" ]; then
Expand Down

0 comments on commit 9ee43e0

Please sign in to comment.