Skip to content

Commit

Permalink
Merge pull request #43754 from mmusich/mm_dev_fix_test_payload_sanity
Browse files Browse the repository at this point in the history
fix `test_payload_sanity` unit test script
  • Loading branch information
cmsbuild authored Jan 22, 2024
2 parents eb8d04f + 6b1b07a commit 8439677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
function die { echo $1: status $2; exit $2; }

INPUTFILE=${SCRAM_TEST_PATH}/alignments_MP.db
(cmsRun ${SCRAM_TEST_PATH}/AlignmentRcdChecker_cfg.py inputSqliteFile=${INPUTFILE}) || die 'failed running AlignmentRcdChecker'
echo -e "Content of the current directory is: "`ls .`
INPUTFILE=alignments_MP.db
(cmsRun ${SCRAM_TEST_PATH}/AlignmentRcdChecker_cfg.py inputSqliteFile=${INPUTFILE}) || die 'failed running AlignmentRcdChecker' $?
rm $INPUTFILE
7 changes: 3 additions & 4 deletions Alignment/MillePedeAlignmentAlgorithm/test/test_pede.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function die { echo $1: status $2; exit $2; }
LOCAL_TEST_DIR=${SCRAM_TEST_PATH}

clean_up(){
echo "cleaning the local test area"
echo -e "\nCleaning the local test area"
rm -fr milleBinary00*
rm -fr pedeSteer*
rm -fr millepede.*
Expand All @@ -13,7 +13,7 @@ clean_up(){
rm -fr *.dat
rm -fr *.tar
rm -fr *.gz
rm -fr *.db
rm -fr *.dump
}

if test -f "milleBinary*"; then
Expand All @@ -39,10 +39,9 @@ if [ $STATUS -eq 0 ]; then
echo -e "\n @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e " @ MillePede Exit Status: "`cat millepede.end`
echo -e " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
## mv the output file to the local test directory for the subsequent payload sanity check
mv alignments_MP.db ${LOCAL_TEST_DIR}
## clean the house now...
clean_up
echo -e "\nContent of the current directory is: "`ls .`
else
die "SKIPPING test, file ${TESTPACKAGE}.tar not found" 0
fi

0 comments on commit 8439677

Please sign in to comment.