From 41ee805e5ad76323be34a1e40786b454acd50f97 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 3 Nov 2022 13:47:22 +0100 Subject: [PATCH] Translate file names from target workspace to target repo --- industrial_ci/src/tests/source_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/industrial_ci/src/tests/source_tests.sh b/industrial_ci/src/tests/source_tests.sh index 465779865..af3b72c61 100644 --- a/industrial_ci/src/tests/source_tests.sh +++ b/industrial_ci/src/tests/source_tests.sh @@ -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