diff --git a/test/run_generator_tests.sh b/test/run_generator_tests.sh index 79addd3ea..f6f6761c2 100755 --- a/test/run_generator_tests.sh +++ b/test/run_generator_tests.sh @@ -152,6 +152,8 @@ add_ini_files_from_macros() # given a list of macros, collect all INI files which contain at least one of them local macro_files=$@ for mf in ${macro_files} ; do + # if any, strip the leading O2DPG_ROOT path to only grep for the relative trailing path + mf=${mf##${O2DPG_ROOT}/} local other_ini_files=$(grep -r -l ${mf} | grep ".ini$") # so this macro is not included in any of the INI file, # maybe it is included by another macro which is then included in an INI file