diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-08 15:27:00 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-11 14:30:50 +0100 |
commit | 2140461198cdb8dea2f60a66a0ddf90bb1ef54da (patch) | |
tree | c8be5f9904d99cc0038504fc595ed7db559d6f44 /docker/prepare_env.sh | |
parent | f9bd5abbef5a33abcb84b2652d359f469bf06869 (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-x | docker/prepare_env.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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. |