summaryrefslogtreecommitdiffstats
path: root/docker/prepare_env.sh
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-11 16:45:00 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-01-12 09:59:07 +0000
commit0f4828114b80b9077d451692843847dd692f94b9 (patch)
tree5acfff95cc0eba37cef7fe95864ceb72c58f73ef /docker/prepare_env.sh
parent3ff47a399463ea71e4ae83fb5ce70e338e2de9a7 (diff)
Prepare Promise integration in Functest
JIRA: FUNCTEST-68 Change-Id: I9dd3e49cf7cbcec932fb08af359c6e4784818155 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 3d064f457576fe87cce5813af7d33cf45e898e3d)
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-xdocker/prepare_env.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh
index cae53b7c0..321ae9fe3 100755
--- a/docker/prepare_env.sh
+++ b/docker/prepare_env.sh
@@ -156,6 +156,19 @@ if [ $offline == false ]; then
git reset --hard ${ONOS_COMMIT}
fi
+ info "Updating PROMISE repository...."
+ cd ${PROMISE_REPO_DIR}
+ if [ ${PROMISE_BRANCH} != "master" ]; then
+ info "PROMISE repo: checkout ${PROMISE} branch..."
+ git checkout ${PROMISE_BRANCH}
+ fi
+ info "PROMISE repo: pulling to latest..."
+ git pull
+ if [ ${PROMISE_COMMIT} != "latest" ]; then
+ info "PROMISE repo: given commit is ${PROMISE_COMMIT}. Reseting..."
+ git reset --hard ${PROMISE_COMMIT}
+ fi
+
fi
# We do this regardless if its online or offline mode.