From 9eb2005c087a6c064fd2880edd253028e3ea1513 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 24 Aug 2017 17:07:50 +0800 Subject: Refactor storperf testing scripts into ansible role Change-Id: Ifbfe0818a528dbd9b2c176acf39450ca480e931a Signed-off-by: Yujun Zhang --- tests/ci/launch_containers_by_testsuite.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/ci/launch_containers_by_testsuite.sh') 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 -- cgit 1.2.3-korg