aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ci/launch_containers_by_testsuite.sh
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-08-28 01:54:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-28 01:54:21 +0000
commitac3c3a04ccd90a971736fb002d98611ec43b3b24 (patch)
tree5e22e3cdc29888d8753ab9a5d2845453af153f7b /tests/ci/launch_containers_by_testsuite.sh
parente8e46c97c8e3b7b77a598cd39e1f938e0bbef3c0 (diff)
parent9eb2005c087a6c064fd2880edd253028e3ea1513 (diff)
Merge "Refactor storperf testing scripts into ansible role"
Diffstat (limited to 'tests/ci/launch_containers_by_testsuite.sh')
-rwxr-xr-xtests/ci/launch_containers_by_testsuite.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ci/launch_containers_by_testsuite.sh b/tests/ci/launch_containers_by_testsuite.sh
index b55ba09c..08b80028 100755
--- a/tests/ci/launch_containers_by_testsuite.sh
+++ b/tests/ci/launch_containers_by_testsuite.sh
@@ -7,6 +7,8 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+export ENV_FILE="${WORKSPACE}/env_file"
+
if [[ -e $ENV_FILE ]];then
rm $ENV_FILE
fi
@@ -51,8 +53,8 @@ if [[ "$TEST_SUITE" == 'compute' ]];then
elif [[ "$TEST_SUITE" == 'storage' ]];then
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng
- $WORKSPACE/releng/utils/fetch_os_creds.sh -i $INSTALLER_TYPE -a $INSTALLER_IP -d $WORKSPACE/openrc
+ curl https://git.opnfv.org/releng/plain/utils/fetch_os_creds.sh | bash -s -- \
+ -i $INSTALLER_TYPE -a $INSTALLER_IP -d $WORKSPACE/openrc
grep "export" $WORKSPACE/openrc | sed "s/export //" >> $ENV_FILE
echo "DOCKER_TAG=$DOCKER_TAG" >> $ENV_FILE