X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fhc2vpp%2Finclude-raw-hc2vpp-csit-perf.sh;h=bf46af58aab4e1d431407dcea3febf96385b8c7a;hb=536be0062a160b4595a73ba8d70593b9a0b7eb9e;hp=266c9ede215ea4e53f14a364a3df12be3b36621d;hpb=29e8928eeee2321ef1887c1f1f49bce918daef57;p=ci-management.git diff --git a/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh b/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh index 266c9ede2..bf46af58a 100644 --- a/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh +++ b/jjb/hc2vpp/include-raw-hc2vpp-csit-perf.sh @@ -2,7 +2,7 @@ set -xeu -o pipefail # Get CSIT branch -if [ -f csit-test-branch ]; then +if [[ -f csit-test-branch ]]; then chmod +x csit-test-branch CSIT_BRANCH=`./csit-test-branch` else @@ -13,14 +13,14 @@ fi git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH} # If the git clone fails, complain clearly and exit -if [ $? != 0 ]; then +if [[ $? != 0 ]]; then echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}" - exit + exit 1 fi cd csit # execute csit bootstrap script if it exists -if [ ! -e bootstrap-hc2vpp-perf.sh ] +if [[ ! -e bootstrap-hc2vpp-perf.sh ]] then echo 'ERROR: No bootstrap-hc2vpp-perf.sh found' exit 1 @@ -28,11 +28,7 @@ else # make sure that bootstrap.sh is executable chmod +x bootstrap-hc2vpp-perf.sh # run the script - if [ ${STREAM} == 'master' ]; then - ./bootstrap-hc2vpp-perf.sh ${STREAM} ${OS} ${ODL} - else - ./bootstrap-hc2vpp-perf.sh 'stable.'${STREAM} ${OS} ${ODL} - fi + ./bootstrap-hc2vpp-perf.sh ${STREAM} ${OS} ${ODL} fi # vim: ts=4 ts=4 sts=4 et :