summaryrefslogtreecommitdiffstats
path: root/docker/prepare_env.sh
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-08 15:27:00 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-01-11 13:36:31 +0000
commit970ee3eb202a5986b2da918ef034d1a1aba4520a (patch)
tree44dab142fb9cb3860f3e5b8c6ccae7f3be4faebd /docker/prepare_env.sh
parent55048bcbd8db2c8975faa233a260fbc3222e9dcd (diff)
Prepare onos integration in Functest
JIRA: FUNCTEST-50 Change-Id: I50c7db5a05dd5aa78321ba77fab3902232ea4f36 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 2140461198cdb8dea2f60a66a0ddf90bb1ef54da)
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-xdocker/prepare_env.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh
index 983eefc08..cae53b7c0 100755
--- a/docker/prepare_env.sh
+++ b/docker/prepare_env.sh
@@ -142,6 +142,20 @@ if [ $offline == false ]; then
info "BGPVPN repo: given commit is ${BGPVPN_COMMIT}. Reseting..."
git reset --hard ${BGPVPN_COMMIT}
fi
+
+ info "Updating ONOS repository...."
+ cd ${ONOS_REPO_DIR}
+ if [ ${ONOS_BRANCH} != "master" ]; then
+ info "ONOS repo: checkout ${ONOS} branch..."
+ git checkout ${ONOS_BRANCH}
+ fi
+ info "ONOS repo: pulling to latest..."
+ git pull
+ if [ ${ONOS_COMMIT} != "latest" ]; then
+ info "ONOS repo: given commit is ${ONOS_COMMIT}. Reseting..."
+ git reset --hard ${ONOS_COMMIT}
+ fi
+
fi
# We do this regardless if its online or offline mode.