diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-24 17:07:50 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-26 02:24:07 +0000 |
commit | 9eb2005c087a6c064fd2880edd253028e3ea1513 (patch) | |
tree | f08671811e0c70e5c29173ea4ef4ea2aea37332b /tests/ci/launch_containers_by_testsuite.sh | |
parent | 73f6ca735e00902f9b71a9110eb97c7b008d8e94 (diff) |
Refactor storperf testing scripts into ansible role
Change-Id: Ifbfe0818a528dbd9b2c176acf39450ca480e931a
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/ci/launch_containers_by_testsuite.sh')
-rwxr-xr-x | tests/ci/launch_containers_by_testsuite.sh | 6 |
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 |