X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docker%2Fexec_tests.sh;h=5d9a46c704d4cad578c6298959d0292d099b4a94;hb=49cb31a0e2e2ccafd6785a5f966d4f66e5c19bcf;hp=46e5a05bd0d78d2d03d9f3eac29216a244749a13;hpb=1ff9df7e724eb0c981aebd5f5b8aa90db0da292b;p=yardstick.git diff --git a/docker/exec_tests.sh b/docker/exec_tests.sh index 46e5a05bd..5d9a46c70 100755 --- a/docker/exec_tests.sh +++ b/docker/exec_tests.sh @@ -14,11 +14,6 @@ set -e : ${YARDSTICK_REPO_DIR:='/home/opnfv/repos/yardstick'} : ${YARDSTICK_BRANCH:='master'} # branch, tag, sha1 or refspec -: ${RELENG_REPO:='https://gerrit.opnfv.org/gerrit/releng'} -: ${RELENG_REPO_DIR:='/home/opnfv/repos/releng'} -# TEMP HACK to freeze releng version to workaround fetch_os_creds.sh problem -: ${RELENG_BRANCH:='master'} # branch, tag, sha1 or refspec - # git update using reference as a branch. # git_update_branch ref function git_update_branch { @@ -74,19 +69,7 @@ git_checkout() fi } -echo -echo "INFO: Updating releng -> ${RELENG_BRANCH}" -if [ ! -d ${RELENG_REPO_DIR} ]; then - git clone ${RELENG_REPO} ${RELENG_REPO_DIR} -fi -cd ${RELENG_REPO_DIR} -# reset remote so we know origin is valid -git remote set-url origin ${RELENG_REPO} -# fetch the exact ref -git fetch --tags origin ${RELENG_BRANCH} || true -# purge pyc files -find . -name '*.pyc' -delete -git_checkout ${RELENG_BRANCH} +# releng is not needed, we bind-mount the credentials echo echo "INFO: Updating yardstick -> ${YARDSTICK_BRANCH}" @@ -96,8 +79,10 @@ fi cd ${YARDSTICK_REPO_DIR} git_checkout ${YARDSTICK_BRANCH} -# setup the environment -source ${YARDSTICK_REPO_DIR}/tests/ci/prepare_env.sh +if [[ "${DEPLOY_SCENARIO:0:2}" == "os" ]];then + # setup the environment + source ${YARDSTICK_REPO_DIR}/tests/ci/prepare_env.sh +fi # execute tests ${YARDSTICK_REPO_DIR}/tests/ci/yardstick-verify $@