Skip to content

Commit

Permalink
use release format if available
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Feb 23, 2018
1 parent a16defc commit 72680d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run-cmsdist-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ if [ "X$ARCHITECTURE" != X ]; then
fi

if [ $(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB=' | grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "${ARCH_MATCH}" | wc -l) -gt 1 ] ; then
CONFIG_LINE=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "${ARCH_MATCH}" | grep "PR_TESTS=1")
if [ "$RELEASE_FORMAT" = "" ] ; then
CONFIG_LINE=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "${ARCH_MATCH}" | grep "PR_TESTS=1" | head -1)
else
CONFIG_LINE=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "RELEASE_QUEUE=$RELEASE_FORMAT;" | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "${ARCH_MATCH}" | grep "PR_TESTS=1" | head -1)
fi
else
CONFIG_LINE=$(cat $CMS_BOT_DIR/config.map | grep -v 'NO_IB='| grep -v 'DISABLED=1;' | grep "CMSDIST_TAG=${CMSDIST_BRANCH};" | grep "${ARCH_MATCH}")
fi
Expand Down

0 comments on commit 72680d2

Please sign in to comment.