From 2140461198cdb8dea2f60a66a0ddf90bb1ef54da Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Fri, 8 Jan 2016 15:27:00 +0100 Subject: Prepare onos integration in Functest JIRA: FUNCTEST-50 Change-Id: I50c7db5a05dd5aa78321ba77fab3902232ea4f36 Signed-off-by: Morgan Richomme --- docker/prepare_env.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docker/prepare_env.sh') diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh index 983eefc0..cae53b7c 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. -- cgit 1.2.3-korg