Skip to content

Commit 96c3a3b

Browse files
committed
Fix macros changes detection
1 parent 5c65381 commit 96c3a3b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MC/config/PWGGAJE/external/generator/generator_pythia8_powheg.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,4 @@ FairGenerator *getGeneratorJEPythia8POWHEG(std::string powhegconf = "pwgpath", s
239239
myGen->setConfig(pythia8conf);
240240
}
241241
return myGen;
242-
}
242+
}

test/run_generator_tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ add_ini_files_from_macros()
161161
# given a list of macros, collect all INI files which contain at least one of them
162162
local macro_files=$@
163163
for mf in ${macro_files} ; do
164-
# if any, strip the leading O2DPG_ROOT path to only grep for the relative trailing path
165-
mf=${mf##${O2DPG_ROOT}/}
164+
# Strip anything before MC/config/, if any, to get the macro relative path
165+
if [[ "${mf}" == *"MC/config"* ]] ; then
166+
mf=${mf#*MC/config/}
167+
mf="MC/config/${mf}"
168+
fi
166169
local other_ini_files=$(grep -r -l ${mf} | grep ".ini$")
167170
# so this macro is not included in any of the INI file,
168171
# maybe it is included by another macro which is then included in an INI file

0 commit comments

Comments
 (0)