Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#! /bin/bash

function die { echo $1: status $2 ; exit $2; }
function cleanTheHouse {
    rm -fr millepede.*
    rm -fr pede*
    rm -fr treeFile.root
    rm -fr testPCLAlCaHarvesting.db
    rm -fr HGalignment
}

echo "========== Starting Calibration/TkAlCaRecoProducers Test =========="
cmsRun -e -j testPCLAlCaHarvesting.xml ${SCRAM_TEST_PATH}/testPCLAlCaHarvesting.py || die "Failure running testPCLAlCaHarvesting.py" $?
cleanTheHouse
echo ""  # Adding a blank line for better readability
echo "========== Parsing Framework Job Report =========="
python3 ${SCRAM_TEST_PATH}/parseFwkJobReport.py