Skip to content

Commit

Permalink
create cmssw-config toolfile during PR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Dec 19, 2024
1 parent 5b694cf commit 46cd7be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,12 @@ if ${BUILD_EXTERNAL} ; then
sver=$(grep '^lcg+SCRAMV1+' $WORKSPACE/cmsswtoolconf.log | head -1 | sed 's|^lcg+SCRAMV1+||;s| .*||')
echo $sver > $CMSSW_IB/config/scram_version
config_tag=$(grep '%define *configtag *V' $WORKSPACE/cmsdist/scram-project-build.file | sed 's|.*configtag *V|V|;s| *||g')
old_config_tag=$(cat $CMSSW_IB/config/config_tag)
if [ -d $WORKSPACE/config ] ; then
cp -r $WORKSPACE/config scram-buildrules
config_tag="${config_tag}-01"
else
if [ "$(cat $CMSSW_IB/config/config_tag)" != "${config_tag}" ] ; then
if [ "${old_config_tag}" != "${config_tag}" ] ; then
git clone [email protected]:cms-sw/cmssw-config scram-buildrules
pushd scram-buildrules
git checkout ${config_tag}
Expand Down Expand Up @@ -683,6 +685,12 @@ if ${BUILD_EXTERNAL} ; then
echo "${CMS_WEEKLY_REPO}.${PR_EXTERNAL_REPO}/${TOOL_CONF_VERSION}" > $WORKSPACE/cmssw-tool-conf.txt
echo "CMSSWTOOLCONF_VERSION;OK,External tool conf,See log,cmssw-tool-conf.txt" >> ${RESULTS_DIR}/toolconf.txt
mv $WORKSPACE/$BUILD_DIR/$ARCHITECTURE/cms/cmssw-tool-conf/${TOOL_CONF_VERSION}/tools/selected ${CTOOLS}
if [ -e ${BTOOLS}/cmssw-config.xml ] ; then
cp ${BTOOLS}/cmssw-config.xml ${CTOOLS}/
if [ "${old_config_tag}" != "${config_tag}" ] ; then
sed -i -e "s|${old_config_tag}|${config_tag}|" ${CTOOLS}/cmssw-config.xml || true
fi
fi
#Copy extra available tools
if [ -d $WORKSPACE/$CMSSW_IB/config/toolbox/${ARCHITECTURE}/tools/available -a -d $WORKSPACE/$BUILD_DIR/$ARCHITECTURE/cms/cmssw-tool-conf/${TOOL_CONF_VERSION}/tools/available ] ; then
mv $WORKSPACE/$CMSSW_IB/config/toolbox/${ARCHITECTURE}/tools/{available,available.backup}
Expand Down

0 comments on commit 46cd7be

Please sign in to comment.