Skip to content

Commit

Permalink
fix for crab pr test
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 30, 2024
1 parent dbd2e86 commit dd39d85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions crab/ib-run-pr-crab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ cd $RELEASE_FORMAT
eval `scram run -sh`

#Checkout a package
find src -name '*'
git cms-addpkg FWCore/Version
#Added test python module and script to make sure it is part of card sandbox
mkdir -p ${CMSSW_BASE}/src/FWCore/Version/python ${CMSSW_BASE}/src/FWCore/Version/scripts
echo 'CMSBOT_CRAB_TEST="OK"' > ${CMSSW_BASE}/src/FWCore/Version/python/cmsbot_crab_test.py
echo -e '#!/bin/bash\necho OK' > ${CMSSW_BASE}/src/FWCore/Version/scripts/cmsbot_crab_test.sh
chmod +x ${CMSSW_BASE}/src/FWCore/Version/scripts/cmsbot_crab_test.sh
scram build -j $(nproc)

eval `scram run -sh`

[ "${BUILD_ID}" != "" ] || export BUILD_ID=$(date +%s)
Expand Down
2 changes: 1 addition & 1 deletion pr_testing/setup-pr-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ "${CMSSW_CVMFS_PATH}" != "" ] ; then
popd
mkdir -p $WORKSPACE/${CMSSW_VERSION}
if [ -f ${CMSSW_CVMFS_PATH}/ibeos_cache.txt ] ; then ln -s ${CMSSW_CVMFS_PATH}/ibeos_cache.txt $WORKSPACE/${CMSSW_VERSION}/ibeos_cache.txt ; fi
ln -s ${CMSSW_CVMFS_PATH}/src $WORKSPACE/${CMSSW_VERSION}/src
[ -e $WORKSPACE/${CMSSW_VERSION}/src ] || ln -s ${CMSSW_CVMFS_PATH}/src $WORKSPACE/${CMSSW_VERSION}/src
else
pushd $WORKSPACE/$CMSSW_IB
eval `scram run -sh` >/dev/null 2>&1
Expand Down

0 comments on commit dd39d85

Please sign in to comment.