Skip to content

Commit

Permalink
Merge pull request #41090 from smuzaffar/ut-fix-gi
Browse files Browse the repository at this point in the history
Unit test: Do not generate files in top level directory
  • Loading branch information
cmsbuild authored Mar 20, 2023
2 parents f5c8c84 + 983b30e commit 82f7f38
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#!/bin/bash -ex

cd ${LOCALTOP}
curl -s -k https://cms-pdmv.cern.ch/mcm/public/restapi/requests/get_fragment/BTV-RunIISummer20UL17GEN-00002 --retry 3 --create-dirs -o ${LOCALTOP}/tmp/GIP8/BTV-RunIISummer20UL17GEN-00002-fragment.py
touch ${LOCALTOP}/tmp/GIP8/__init__.py
export PYTHONPATH="${LOCALTOP}/tmp${PYTHONPATH:+:$PYTHONPATH}"
curl -s -k https://cms-pdmv.cern.ch/mcm/public/restapi/requests/get_fragment/BTV-RunIISummer20UL17GEN-00002 --retry 3 --create-dirs -o GIP8/BTV-RunIISummer20UL17GEN-00002-fragment.py
touch GIP8/__init__.py
export PYTHONPATH="${PWD}${PYTHONPATH:+:$PYTHONPATH}"

cmsDriver.py GIP8/BTV-RunIISummer20UL17GEN-00002-fragment.py --python_filename test_BTV-RunIISummer20UL17GEN-00002_1_cfg.py --eventcontent RAWSIM --customise Configuration/DataProcessing/Utils.addMonitoring --datatier GEN --fileout file:test_BTV-RunIISummer20UL17GEN-00002.root --conditions auto:run2_mc --beamspot Realistic25ns13TeVEarly2017Collision --customise_commands process.source.numberEventsInLuminosityBlock="cms.untracked.uint32(10)" --step GEN --geometry DB:Extended --era Run2_2017 --no_exec --mc -n 50 --nThreads 4 --nConcurrentLumis 0

sed -i "s/Pythia8GeneratorFilter/Pythia8ConcurrentGeneratorFilter/g" test_BTV-RunIISummer20UL17GEN-00002_1_cfg.py

cmsRun test_BTV-RunIISummer20UL17GEN-00002_1_cfg.py
rm -rf ${LOCALTOP}/tmp/GIP8

0 comments on commit 82f7f38

Please sign in to comment.