summaryrefslogtreecommitdiffstats
path: root/docker/prepare_env.sh
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-19 13:24:31 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-19 13:24:31 +0000
commit57f279232b7393a546e408484bd0188e2b341391 (patch)
treeb48af5163880b0d38699445e0e80bcddd13c78bc /docker/prepare_env.sh
parent4dc35c36e80521b0fe0ca6ab528d2c4e062b2a12 (diff)
parentcc27777f84ea018cc2c0487a4fc3ff0c3b6d358f (diff)
Merge "Add mention to apache 2 license in Functest files and remove unused files"
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-xdocker/prepare_env.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh
index 48320d4cc..4f1751baa 100755
--- a/docker/prepare_env.sh
+++ b/docker/prepare_env.sh
@@ -6,6 +6,12 @@
# Installs the Functest framework within the Docker container
# and run the tests automatically
#
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
usage="Script to prepare the Functest environment.
@@ -155,6 +161,19 @@ if [ $offline == false ]; then
git reset --hard ${PROMISE_COMMIT}
fi
+ info "Updating OVNO repository...."
+ cd ${OVNO_REPO_DIR}
+ if [ ${OVNO_BRANCH} != "master" ]; then
+ info "OVNO repo: checkout ${OVNO} branch..."
+ git checkout ${OVNO_BRANCH}
+ fi
+ info "OVNO repo: pulling to latest..."
+ git pull
+ if [ ${OVNO_COMMIT} != "latest" ]; then
+ info "OVNO repo: given commit is ${OVNO_COMMIT}. Reseting..."
+ git reset --hard ${OVNO_COMMIT}
+ fi
+
fi
# We do this regardless if its online or offline mode.