aboutsummaryrefslogtreecommitdiffstats
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 14:30:50 +0100
commit2140461198cdb8dea2f60a66a0ddf90bb1ef54da (patch)
treec8be5f9904d99cc0038504fc595ed7db559d6f44 /docker/prepare_env.sh
parentf9bd5abbef5a33abcb84b2652d359f469bf06869 (diff)
Prepare onos integration in Functest
JIRA: FUNCTEST-50 Change-Id: I50c7db5a05dd5aa78321ba77fab3902232ea4f36 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
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.