Skip to content

Commit dc90bb0

Browse files
benedikt-voelkelBenedikt Volkel
andauthored
[GenCI] Fix recursive check for macros contained in INI files (#1670)
Co-authored-by: Benedikt Volkel <benedikt.volkel@cern.ch>
1 parent eb217a3 commit dc90bb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/run_generator_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ add_ini_files_from_macros()
152152
# given a list of macros, collect all INI files which contain at least one of them
153153
local macro_files=$@
154154
for mf in ${macro_files} ; do
155+
# if any, strip the leading O2DPG_ROOT path to only grep for the relative trailing path
156+
mf=${mf##${O2DPG_ROOT}/}
155157
local other_ini_files=$(grep -r -l ${mf} | grep ".ini$")
156158
# so this macro is not included in any of the INI file,
157159
# maybe it is included by another macro which is then included in an INI file

0 commit comments

Comments
 (0)