Skip to content

Commit

Permalink
if more than one release cycle found then use normal release flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Mar 7, 2018
1 parent 7b8ad65 commit 4f30ef5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pr-schedule-tests
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ else
CMSDIST_BRANCH=$(echo $GH_JSON | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["base"]["ref"]')
if [ $(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB=' | grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | wc -l) -gt 1 ] ; then
MLINES=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "PR_TESTS=1")
if [ $(echo $MLINES | tr ';' '\n' | grep SCRAM_ARCH= | wc -l) -gt 1 ] ; then
MLINES=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "PR_TESTS=1" | grep 'RELEASE_QUEUE=CMSSW_[0-9][0-9]*_[0-9][0-9]*_X')
fi
else
MLINES=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};")
fi
Expand Down
2 changes: 1 addition & 1 deletion report-pull-request-results
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
eval $(scram unset -sh)
eval $(scram unset -sh) || true
for x in 0 1 2 ; do
$(dirname $0)/report-pull-request-results.py "$@" && exit 0
sleep 30
Expand Down

0 comments on commit 4f30ef5

Please sign in to comment.