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 10:52:50 +0100
commit3d064f457576fe87cce5813af7d33cf45e898e3d (patch)
treefb071575c4c553a48165e29d7ca340da83132543 /docker/prepare_env.sh
parent9de9e1226184ede9c5b8aadde9287dec29b422ee (diff)
Prepare Promise integration in Functest
JIRA: FUNCTEST-68 Change-Id: I9dd3e49cf7cbcec932fb08af359c6e4784818155 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
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.