Skip to content

Commit

Permalink
fix test_getPayloadData in case there've been recent changes in the p…
Browse files Browse the repository at this point in the history
…lugins definitions
  • Loading branch information
mmusich committed Jul 16, 2021
1 parent fce3630 commit b255057
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CondCore/Utilities/test/test_getPayloadData.sh
Expand Up @@ -9,10 +9,12 @@ check_for_failure() {
}

check_for_full(){
count=`echo ${@} | python3 -c 'import json,sys;print(len(json.load(sys.stdin)["cond::BasicPayload"]))'`
if [[ $count -gt 1 ]]
count=`echo ${@} | python3 -c 'import json,sys;data=json.load(sys.stdin);print(len(data.keys()))'`
echo $count
if [[ $count -gt 0 ]]
then
echo -e "\n ---> passed getPayloadData.py --discover test : found $count entries"
entries=`echo ${@} | python3 -c 'import json,sys;data=json.load(sys.stdin);print(list(data.keys()))'`
echo -e "\n ---> passed getPayloadData.py --discover test : found $count entries: $entries"
else
echo -e "getPayloadData.py --discover test not passed... found no entries"
exit 1
Expand Down

0 comments on commit b255057

Please sign in to comment.