X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docker%2Fprepare_env.sh;h=542df0e72aa4ad81b71d13ea8fb389e705f7aecd;hb=3b70767b85152cc79381104ba73c0afe9607f781;hp=ea82ea1c08c03ae3a64284d5fd4a5163bf7b5cb5;hpb=47635924e6def36be3c44a047d91018e47a439eb;p=functest.git diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh index ea82ea1c0..542df0e72 100755 --- a/docker/prepare_env.sh +++ b/docker/prepare_env.sh @@ -174,6 +174,18 @@ if [ $offline == false ]; then git reset --hard ${OVNO_COMMIT} fi + info "Updating DOCTOR repository...." + cd ${DOCTOR_REPO_DIR} + if [ ${DOCTOR_BRANCH} != "master" ]; then + info "DOCTOR repo: checkout ${DOCTOR} branch..." + git checkout ${DOCTOR_BRANCH} + fi + info "DOCTOR repo: pulling to latest..." + git pull + if [ ${DOCTOR_COMMIT} != "latest" ]; then + info "DOCTOR repo: given commit is ${DOCTOR_COMMIT}. Reseting..." + git reset --hard ${DOCTOR_COMMIT} + fi fi # We do this regardless if its online or offline mode.