Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid processing toolnames with same name but different capitalization #2194

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,15 @@ if ${BUILD_EXTERNAL} ; then
chmod +x ${RMV_CMSSW_EXTERNAL}
fi
DEP_NAMES=""
#Fix for SCRAMV2 based releases were tools can have different capitalizations
ALL_NEW_TOOLS=$(ls ${CTOOLS}/ | tr '[A-Z]\n' '[a-z] ')
#In some releases libjpeg-turbo tool exists via libjpg
[ $(echo " ${ALL_NEW_TOOLS} " | grep " libjpg.xml " | wc -l) -gt 0 ] && ALL_NEW_TOOLS="${ALL_NEW_TOOLS} libjpeg-turbo.xml"
for xml in $(ls ${BTOOLS}/*.xml) ; do
name=$(basename $xml)
tool=$(echo $name | sed 's|.xml$||')
if [ ! -e ${CTOOLS}/$name ] ; then
lcname=$(echo $name | tr '[A-Z]' '[a-z]')
if [ $(echo " ${ALL_NEW_TOOLS} " | grep " ${lcname} " |wc -l) -eq 0 ] ; then
tool=$(echo $name | sed 's|.xml$||')
echo "Removed tool $name"
DEP_NAMES="$DEP_NAMES echo_${tool}_USED_BY"
fi
Expand Down
Loading